调整部分数据表配置,优化 SpriteCache 功能
This commit is contained in:
@@ -18,7 +18,9 @@ public sealed partial class GoodsConfig : Luban.BeanBase
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
GoodsType = (GoodsType)_buf.ReadInt();
|
||||
GoodsTypeId = _buf.ReadInt();
|
||||
PropId = _buf.ReadInt();
|
||||
PropId_Ref = null;
|
||||
WeaponType = (WeaponType)_buf.ReadInt();
|
||||
}
|
||||
|
||||
public static GoodsConfig DeserializeGoodsConfig(ByteBuf _buf)
|
||||
@@ -35,9 +37,14 @@ public sealed partial class GoodsConfig : Luban.BeanBase
|
||||
/// </summary>
|
||||
public readonly GoodsType GoodsType;
|
||||
/// <summary>
|
||||
/// 商品对应物品Id
|
||||
/// 道具商品Id
|
||||
/// </summary>
|
||||
public readonly int GoodsTypeId;
|
||||
public readonly int PropId;
|
||||
public PropConfig PropId_Ref;
|
||||
/// <summary>
|
||||
/// 武器商品类型
|
||||
/// </summary>
|
||||
public readonly WeaponType WeaponType;
|
||||
|
||||
public const int __ID__ = 1358452248;
|
||||
public override int GetTypeId() => __ID__;
|
||||
@@ -46,15 +53,17 @@ public sealed partial class GoodsConfig : Luban.BeanBase
|
||||
{
|
||||
|
||||
|
||||
PropId_Ref = tables.TbPropConfig.GetOrDefault(PropId);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "Id:" + Id + ","
|
||||
+ "GoodsType:" + GoodsType + ","
|
||||
+ "GoodsTypeId:" + GoodsTypeId + ","
|
||||
+ "id:" + Id + ","
|
||||
+ "goodsType:" + GoodsType + ","
|
||||
+ "propId:" + PropId + ","
|
||||
+ "weaponType:" + WeaponType + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user