//------------------------------------------------------------------------------ // // 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 SepCore.Definition { public sealed partial class EnemyDropConfig : Luban.BeanBase { public EnemyDropConfig(ByteBuf _buf) { Id = _buf.ReadInt(); Name = _buf.ReadString(); {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);LootConfigs = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { LootGenerationConfig _e0; _e0 = LootGenerationConfig.DeserializeLootGenerationConfig(_buf); LootConfigs.Add(_e0);}} } public static EnemyDropConfig DeserializeEnemyDropConfig(ByteBuf _buf) { return new EnemyDropConfig(_buf); } /// /// 掉落表ID /// public readonly int Id; /// /// 显示名 /// public readonly string Name; /// /// 与物资点相同结构的独立掉落规则 /// public readonly System.Collections.Generic.List LootConfigs; public const int __ID__ = -1747318631; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { foreach (var _e in LootConfigs) { _e?.ResolveRef(tables); } } public override string ToString() { return "{ " + "id:" + Id + "," + "name:" + Name + "," + "lootConfigs:" + Luban.StringUtil.CollectionToString(LootConfigs) + "," + "}"; } } }