将 ShopController 构建 Context 的功能迁移到 partial class 里,并调整了部分构建逻辑
This commit is contained in:
@@ -17,5 +17,19 @@ namespace SepCore.UI
|
||||
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