迁移数据表到 Luban,移除 JsonNet、EnumUtility
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 partial class TbGlobalConfig
|
||||
{
|
||||
|
||||
private readonly GlobalConfig _data;
|
||||
|
||||
public GlobalConfig Data => _data;
|
||||
|
||||
public TbGlobalConfig(ByteBuf _buf)
|
||||
{
|
||||
int n = _buf.ReadSize();
|
||||
if (n != 1) throw new SerializationException("table mode=one, but size != 1");
|
||||
_data = GlobalConfig.DeserializeGlobalConfig(_buf);
|
||||
}
|
||||
|
||||
|
||||
public int ElapsedTime => _data.ElapsedTime;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
_data.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user