迁移数据表到 Luban,移除 JsonNet、EnumUtility
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
{
|
||||
/// <summary>
|
||||
/// 出怪配置
|
||||
/// </summary>
|
||||
public sealed partial class enemySpawnConfig : Luban.BeanBase
|
||||
{
|
||||
public enemySpawnConfig(ByteBuf _buf)
|
||||
{
|
||||
EnemyName = _buf.ReadString();
|
||||
EnemyName_Ref = null;
|
||||
EnemyCount = _buf.ReadInt();
|
||||
Interval = _buf.ReadInt();
|
||||
}
|
||||
|
||||
public static enemySpawnConfig DeserializeenemySpawnConfig(ByteBuf _buf)
|
||||
{
|
||||
return new enemySpawnConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 要出的怪名
|
||||
/// </summary>
|
||||
public readonly string EnemyName;
|
||||
public EnemyConfig EnemyName_Ref;
|
||||
/// <summary>
|
||||
/// 一次出的数量
|
||||
/// </summary>
|
||||
public readonly int EnemyCount;
|
||||
/// <summary>
|
||||
/// 每次出怪的间隔
|
||||
/// </summary>
|
||||
public readonly int Interval;
|
||||
|
||||
public const int __ID__ = -1182208523;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
EnemyName_Ref = tables.TbEnemyConfig.GetOrDefault(EnemyName);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "enemyName:" + EnemyName + ","
|
||||
+ "enemyCount:" + EnemyCount + ","
|
||||
+ "interval:" + Interval + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user