[Add] Dice & Refactor private names
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
namespace YachtDice.Modifiers.Runtime
|
||||
{
|
||||
[Serializable]
|
||||
public class ModifierSaveEntry
|
||||
{
|
||||
public string ModifierId;
|
||||
public bool IsActive;
|
||||
public int RemainingUses;
|
||||
public int Stacks;
|
||||
public List<CustomStateEntry> CustomState = new();
|
||||
[FormerlySerializedAs("ModifierId")] public string modifierId;
|
||||
[FormerlySerializedAs("IsActive")] public bool isActive;
|
||||
[FormerlySerializedAs("RemainingUses")] public int remainingUses;
|
||||
[FormerlySerializedAs("Stacks")] public int stacks;
|
||||
[FormerlySerializedAs("CustomState")] public List<CustomStateEntry> customState = new();
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class CustomStateEntry
|
||||
{
|
||||
public string Key;
|
||||
public float Value;
|
||||
[FormerlySerializedAs("Key")] public string key;
|
||||
[FormerlySerializedAs("Value")] public float value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user