引入 UISerializationRoot 和 Item

- 完成 MenuForm 和 SelectRoleForm 的迁移
This commit is contained in:
2026-09-13 22:18:29 +08:00
parent e2fdb660ab
commit 091a29db63
101 changed files with 5281 additions and 5753 deletions
@@ -17,6 +17,13 @@ public sealed partial class GlobalConfig : Luban.BeanBase
public GlobalConfig(ByteBuf _buf)
{
WeaponCapacity = _buf.ReadInt();
WeaponRecycleRate = _buf.ReadInt();
ShopGoodsCount = _buf.ReadInt();
ShopPriceRandomPercent = _buf.ReadInt();
ShopMinPrice = _buf.ReadInt();
PropMaxCount = _buf.ReadInt();
LevelUpRefreshPriceBase = _buf.ReadInt();
LevelUpRewardCount = _buf.ReadInt();
}
public static GlobalConfig DeserializeGlobalConfig(ByteBuf _buf)
@@ -28,6 +35,34 @@ public sealed partial class GlobalConfig : Luban.BeanBase
/// 最大持有武器数量
/// </summary>
public readonly int WeaponCapacity;
/// <summary>
/// 武器回收价比例
/// </summary>
public readonly int WeaponRecycleRate;
/// <summary>
/// 商店商品数量
/// </summary>
public readonly int ShopGoodsCount;
/// <summary>
/// 商品价格浮动
/// </summary>
public readonly int ShopPriceRandomPercent;
/// <summary>
/// 商品最低价
/// </summary>
public readonly int ShopMinPrice;
/// <summary>
/// 最大持有道具数量
/// </summary>
public readonly int PropMaxCount;
/// <summary>
/// 升级奖励刷新基本价格
/// </summary>
public readonly int LevelUpRefreshPriceBase;
/// <summary>
/// 升级奖励候选数
/// </summary>
public readonly int LevelUpRewardCount;
public const int __ID__ = -958250779;
public override int GetTypeId() => __ID__;
@@ -35,12 +70,26 @@ public sealed partial class GlobalConfig : Luban.BeanBase
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "weaponCapacity:" + WeaponCapacity + ","
+ "weaponRecycleRate:" + WeaponRecycleRate + ","
+ "shopGoodsCount:" + ShopGoodsCount + ","
+ "shopPriceRandomPercent:" + ShopPriceRandomPercent + ","
+ "shopMinPrice:" + ShopMinPrice + ","
+ "propMaxCount:" + PropMaxCount + ","
+ "levelUpRefreshPriceBase:" + LevelUpRefreshPriceBase + ","
+ "levelUpRewardCount:" + LevelUpRewardCount + ","
+ "}";
}
}