将 ShopController 构建 Context 的功能迁移到 partial class 里,并调整了部分构建逻辑

This commit is contained in:
2026-06-17 11:57:46 +08:00
parent 44f6729c1a
commit 43f81c8926
6 changed files with 344 additions and 217 deletions
@@ -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;
}
}
}