//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ 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]); } } /// /// 背包基础格子数量 /// public int BackPackGridBaseNum => _data.BackPackGridBaseNum; public void ResolveRef(Tables tables) { _data.ResolveRef(tables); } } }