//------------------------------------------------------------------------------
//
// 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 EnemyPartyConfig : Luban.BeanBase
{
public EnemyPartyConfig(ByteBuf _buf)
{
Id = _buf.ReadInt();
Name = _buf.ReadString();
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);EnemyIds = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); EnemyIds.Add(_e0);}}
}
public static EnemyPartyConfig DeserializeEnemyPartyConfig(ByteBuf _buf)
{
return new EnemyPartyConfig(_buf);
}
///
/// 敌人队伍ID
///
public readonly int Id;
///
/// 显示名
///
public readonly string Name;
///
/// 按顺序进入战斗的敌人ID,最多4个
///
public readonly System.Collections.Generic.List EnemyIds;
public const int __ID__ = 1595792704;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "enemyIds:" + Luban.StringUtil.CollectionToString(EnemyIds) + ","
+ "}";
}
}
}