迁移剩下的 UI 到 Serialization 方式

This commit is contained in:
2026-09-14 17:19:31 +08:00
parent 091a29db63
commit b628a8537c
107 changed files with 4147 additions and 3680 deletions
@@ -0,0 +1,35 @@
using System.Collections.Generic;
namespace SepCore.UI
{
public class ShopContext : UIContext
{
public int CurrentLevel;
public int RefreshPrice;
public int PlayerCoin;
public List<GoodsItemContext> GoodsItems;
public DisplayListContext PropListContext;
public DisplayListContext WeaponListContext;
// 控制字段
public bool NeedRefreshGoodsItems;
public bool NeedRefreshPlayerCoin;
public bool NeedRefreshWeaponList;
public bool NeedRefreshPropList;
public bool NeedRefreshPrice;
public ShopContext()
{
CurrentLevel = 0;
RefreshPrice = 0;
PlayerCoin = 0;
}
public ShopContext(ShopRawData rawData)
{
CurrentLevel = rawData.CurrentLevel;
RefreshPrice = rawData.RefreshPrice;
PlayerCoin = rawData.PlayerCoin;
}
}
}