63 lines
1.8 KiB
C#
63 lines
1.8 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 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<WeightedEnemyParty>(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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 难度档位
|
|
/// </summary>
|
|
public readonly DifficultyTier Tier;
|
|
/// <summary>
|
|
/// 显示名
|
|
/// </summary>
|
|
public readonly string Name;
|
|
/// <summary>
|
|
/// 按权重选择地图敌人队伍
|
|
/// </summary>
|
|
public readonly System.Collections.Generic.List<WeightedEnemyParty> 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) + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|