using System.Collections.Generic; namespace SepCore.UI { public class ShopContext : UIContext { public int CurrentLevel; public int RefreshPrice; public int PlayerCoin; public List GoodsItems; public DisplayListAreaContext PropListContext; public DisplayListAreaContext 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; } } }