13b18b0a8b
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>
28 lines
815 B
C#
28 lines
815 B
C#
namespace YachtDice.Dice
|
|
{
|
|
/// <summary>
|
|
/// Рантайм-состояние одного дайса.
|
|
/// Хранит текущее значение верхней грани и ссылку на определение типа.
|
|
/// </summary>
|
|
public class DiceInstance : IDice
|
|
{
|
|
public DiceDefinitionSO Definition { get; }
|
|
public int Value { get; set; }
|
|
public bool IsLocked { get; set; }
|
|
|
|
public DiceInstance(DiceDefinitionSO definition)
|
|
{
|
|
Definition = definition;
|
|
Value = 0;
|
|
IsLocked = false;
|
|
}
|
|
|
|
public DiceInstance(DiceDefinitionSO definition, int initialValue)
|
|
{
|
|
Definition = definition;
|
|
Value = initialValue;
|
|
IsLocked = false;
|
|
}
|
|
}
|
|
}
|