迁移剩下的 UI 到 Serialization 方式
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user