//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Luban; namespace GameConfig.TbGEntity { /// /// 普通副本信息 /// public sealed partial class TDungeon : Luban.BeanBase { public TDungeon(ByteBuf _buf) { Level = _buf.ReadInt(); Boss = _buf.ReadInt(); {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Attributes = new TbGEntity.TAttributeValue[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { TbGEntity.TAttributeValue __e0;__e0 = TbGEntity.TAttributeValue.DeserializeTAttributeValue(_buf); Attributes[__index0] = __e0;}} {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Rewards = new TbGEntity.TReward[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { TbGEntity.TReward __e0;__e0 = TbGEntity.TReward.DeserializeTReward(_buf); Rewards[__index0] = __e0;}} } public static TDungeon DeserializeTDungeon(ByteBuf _buf) { return new TbGEntity.TDungeon(_buf); } /// /// 副本关卡 /// public readonly int Level; /// /// BOSS ID /// public readonly int Boss; /// /// BOSS 属性 /// public readonly TbGEntity.TAttributeValue[] Attributes; /// /// 关卡奖励 /// public readonly TbGEntity.TReward[] Rewards; public const int __ID__ = -191293256; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { foreach (var _e in Attributes) { _e?.ResolveRef(tables); } foreach (var _e in Rewards) { _e?.ResolveRef(tables); } } public override string ToString() { return "{ " + "level:" + Level + "," + "boss:" + Boss + "," + "attributes:" + Luban.StringUtil.CollectionToString(Attributes) + "," + "rewards:" + Luban.StringUtil.CollectionToString(Rewards) + "," + "}"; } } }