[Rename] Unify Die → Dice naming across the entire project
Standardize all class, interface, file, method, event, field, and variable names from the inconsistent "Die" form to "Dice", matching the existing DiceManager/DiceCatalog/DiceCollection convention. Renamed files (7 + meta): IDie→IDice, DieInstance→DiceInstance, DieDefinitionSO→DiceDefinitionSO, StandardDieSO→StandardDiceSO, DieValueCondition→DiceValueCondition, AddPerDieEffect→AddPerDiceEffect, MultiplyPerDieEffect→MultiplyPerDiceEffect. Updated all 31 consumer and test files with matching reference changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,13 +6,13 @@ namespace YachtDice.Player
|
||||
{
|
||||
public class DiceCollection
|
||||
{
|
||||
private readonly List<DieDefinitionSO> ownedDice = new();
|
||||
private readonly List<DiceDefinitionSO> ownedDice = new();
|
||||
|
||||
public event Action OnChanged;
|
||||
|
||||
public IReadOnlyList<DieDefinitionSO> OwnedDice => ownedDice;
|
||||
public IReadOnlyList<DiceDefinitionSO> OwnedDice => ownedDice;
|
||||
|
||||
public void Add(DieDefinitionSO definition)
|
||||
public void Add(DiceDefinitionSO definition)
|
||||
{
|
||||
if (definition == null) return;
|
||||
if (OwnsById(definition.Id)) return;
|
||||
@@ -21,7 +21,7 @@ namespace YachtDice.Player
|
||||
OnChanged?.Invoke();
|
||||
}
|
||||
|
||||
public void Remove(DieDefinitionSO definition)
|
||||
public void Remove(DiceDefinitionSO definition)
|
||||
{
|
||||
if (ownedDice.Remove(definition))
|
||||
OnChanged?.Invoke();
|
||||
|
||||
Reference in New Issue
Block a user