IndieGame/client/Assets/Scripts/AutoGenerated/Table/TbGlobalConfig.cs

44 lines
1.1 KiB
C#
Raw Permalink Normal View History

2024-10-11 10:12:15 +08:00
//------------------------------------------------------------------------------
// <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;
using SimpleJSON;
namespace TableConfig
{
public partial class TbGlobalConfig
{
private readonly GlobalConfigTable _data;
public GlobalConfigTable Data => _data;
public TbGlobalConfig(JSONNode _buf)
{
int n = _buf.Count;
if (n != 1) throw new SerializationException("table mode=one, but size != 1");
{ if(!_buf[0].IsObject) { throw new SerializationException(); } _data = GlobalConfigTable.DeserializeGlobalConfigTable(_buf[0]); }
}
/// <summary>
/// 背包基础格子数量
/// </summary>
public int BackPackGridBaseNum => _data.BackPackGridBaseNum;
public void ResolveRef(Tables tables)
{
_data.ResolveRef(tables);
}
}
}