60 lines
1.7 KiB
C#
60 lines
1.7 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 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<EnemySpawnConfig>(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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 关卡id
|
|
/// </summary>
|
|
public readonly int Id;
|
|
public readonly System.Collections.Generic.List<EnemySpawnConfig> EnemySpawnConfigs;
|
|
/// <summary>
|
|
/// 关卡时间
|
|
/// </summary>
|
|
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 + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|