//------------------------------------------------------------------------------ // // 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 DifficultyConfig : Luban.BeanBase { public DifficultyConfig(ByteBuf _buf) { Tier = (DifficultyTier)_buf.ReadInt(); Name = _buf.ReadString(); {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);EnemyParties = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { WeightedEnemyParty _e0; _e0 = WeightedEnemyParty.DeserializeWeightedEnemyParty(_buf); EnemyParties.Add(_e0);}} } public static DifficultyConfig DeserializeDifficultyConfig(ByteBuf _buf) { return new DifficultyConfig(_buf); } /// /// 难度档位 /// public readonly DifficultyTier Tier; /// /// 显示名 /// public readonly string Name; /// /// 按权重选择地图敌人队伍 /// public readonly System.Collections.Generic.List EnemyParties; public const int __ID__ = 1183625981; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { foreach (var _e in EnemyParties) { _e?.ResolveRef(tables); } } public override string ToString() { return "{ " + "tier:" + Tier + "," + "name:" + Name + "," + "enemyParties:" + Luban.StringUtil.CollectionToString(EnemyParties) + "," + "}"; } } }