//------------------------------------------------------------------------------ // // 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 LevelConfig : Luban.BeanBase { public LevelConfig(ByteBuf _buf) { Id = _buf.ReadInt(); {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);EnemySpawnConfigs = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { enemySpawnConfig _e0; _e0 = enemySpawnConfig.DeserializeenemySpawnConfig(_buf); EnemySpawnConfigs.Add(_e0);}} Duration = _buf.ReadInt(); } public static LevelConfig DeserializeLevelConfig(ByteBuf _buf) { return new LevelConfig(_buf); } /// /// 关卡id /// public readonly int Id; public readonly System.Collections.Generic.List EnemySpawnConfigs; /// /// 关卡时间 /// public readonly int Duration; public const int __ID__ = -1308229690; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { foreach (var _e in EnemySpawnConfigs) { _e?.ResolveRef(tables); } } public override string ToString() { return "{ " + "id:" + Id + "," + "enemySpawnConfigs:" + Luban.StringUtil.CollectionToString(EnemySpawnConfigs) + "," + "duration:" + Duration + "," + "}"; } } }