[Add] Data

This commit is contained in:
2026-03-02 05:25:05 +07:00
parent 06a75436fe
commit 29ee43807e
71 changed files with 1139 additions and 33 deletions
+27
View File
@@ -0,0 +1,27 @@
namespace YachtDice.Dice
{
/// <summary>
/// Рантайм-состояние одного дайса.
/// Хранит текущее значение верхней грани и ссылку на определение типа.
/// </summary>
public class DiceInstance : IDice
{
public DiсeDefinition Definition { get; }
public int Value { get; set; }
public bool IsLocked { get; set; }
public DiceInstance(DiсeDefinition definition)
{
Definition = definition;
Value = 0;
IsLocked = false;
}
public DiceInstance(DiсeDefinition definition, int initialValue)
{
Definition = definition;
Value = initialValue;
IsLocked = false;
}
}
}