This commit is contained in:
SoulliesOfficial
2026-04-01 12:23:27 -04:00
parent aff7ac0e03
commit c3b1561375
933 changed files with 114333 additions and 119360 deletions

View File

@@ -0,0 +1,28 @@
namespace Continentis.MainGame.Saving
{
/// <summary>
/// 单张卡牌的存档快照。
/// 只记录能够重建运行时 CardInstance 所需的最小信息。
/// </summary>
public class CardSave
{
/// <summary>
/// 卡牌数据 DataID格式CardData_ModName_CardName
/// 通过 ModManager.GetData&lt;CardData&gt;(cardDataID) 还原。
/// </summary>
public string cardDataID;
/// <summary>
/// 升级层数0 = 未升级)。
/// </summary>
public int upgradeLevel;
public CardSave() { }
public CardSave(string cardDataID, int upgradeLevel = 0)
{
this.cardDataID = cardDataID;
this.upgradeLevel = upgradeLevel;
}
}
}