Files
huangjun 92bf3e9097 - 引入 UnityGameFramework
- 使用 Luban 替代原来的 UGF 的数据表
2026-08-30 18:08:55 +08:00

63 lines
1.6 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
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<int>(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);
}
/// <summary>
/// 敌人队伍ID
/// </summary>
public readonly int Id;
/// <summary>
/// 显示名
/// </summary>
public readonly string Name;
/// <summary>
/// 按顺序进入战斗的敌人ID,最多4个
/// </summary>
public readonly System.Collections.Generic.List<int> 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) + ","
+ "}";
}
}
}