[Add] Dice & Refactor private names

This commit is contained in:
2026-03-02 11:22:01 +07:00
parent 4890fa946e
commit f65976796d
36 changed files with 883 additions and 489 deletions
+5 -4
View File
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using UnityEngine.Serialization;
using YachtDice.Modifiers.Runtime;
namespace YachtDice.Persistence
@@ -7,9 +8,9 @@ namespace YachtDice.Persistence
[Serializable]
public sealed class SaveData
{
public int Version = 3;
public int Currency;
public List<ModifierSaveEntry> OwnedModifiers = new();
public List<string> OwnedDiceIds = new();
[FormerlySerializedAs("Version")] public int version = 3;
[FormerlySerializedAs("Currency")] public int currency;
[FormerlySerializedAs("OwnedModifiers")] public List<ModifierSaveEntry> ownedModifiers = new();
[FormerlySerializedAs("OwnedDiceIds")] public List<string> ownedDiceIds = new();
}
}