接入luban

This commit is contained in:
2026-02-17 09:07:25 +08:00
parent edab22473a
commit 861a8a9d16
284 changed files with 17677 additions and 848 deletions

66
Assets/Gen/Bait.cs Normal file
View File

@@ -0,0 +1,66 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class Bait : Luban.BeanBase
{
public Bait(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ if(!_buf["efficacy_base"].IsNumber) { throw new SerializationException(); } EfficacyBase = _buf["efficacy_base"]; }
{ var __json0 = _buf["arr"]; if(!__json0.IsArray) { throw new SerializationException(); } Arr = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Arr.Add(__v0); } }
{ if(!_buf["strength"].IsNumber) { throw new SerializationException(); } Strength = _buf["strength"]; }
}
public static Bait DeserializeBait(JSONNode _buf)
{
return new Bait(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 吸引力
/// </summary>
public readonly int EfficacyBase;
/// <summary>
/// 导线圈
/// </summary>
public readonly System.Collections.Generic.List<int> Arr;
/// <summary>
/// 强度
/// </summary>
public readonly int Strength;
public const int __ID__ = 2062794;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "efficacyBase:" + EfficacyBase + ","
+ "arr:" + Luban.StringUtil.CollectionToString(Arr) + ","
+ "strength:" + Strength + ","
+ "}";
}
}
}

69
Assets/Gen/BasicConfig.cs Normal file
View File

@@ -0,0 +1,69 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class BasicConfig : Luban.BeanBase
{
public BasicConfig(JSONNode _buf)
{
{ if(!_buf["x1"].IsNumber) { throw new SerializationException(); } X1 = _buf["x1"]; }
{ if(!_buf["x2"].IsNumber) { throw new SerializationException(); } X2 = _buf["x2"]; }
{ if(!_buf["x3"].IsNumber) { throw new SerializationException(); } X3 = _buf["x3"]; }
{ if(!_buf["x4"].IsNumber) { throw new SerializationException(); } X4 = _buf["x4"]; }
{ if(!_buf["x5"].IsNumber) { throw new SerializationException(); } X5 = _buf["x5"]; }
{ if(!_buf["x6"].IsNumber) { throw new SerializationException(); } X6 = _buf["x6"]; }
{ var __json0 = _buf["x7"]; if(!__json0.IsArray) { throw new SerializationException(); } X7 = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } X7.Add(__v0); } }
}
public static BasicConfig DeserializeBasicConfig(JSONNode _buf)
{
return new BasicConfig(_buf);
}
/// <summary>
/// 参数1
/// </summary>
public readonly int X1;
/// <summary>
/// 道具
/// </summary>
public readonly int X2;
public readonly int X3;
public readonly int X4;
public readonly int X5;
public readonly int X6;
public readonly System.Collections.Generic.List<int> X7;
public const int __ID__ = 378573040;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "x1:" + X1 + ","
+ "x2:" + X2 + ","
+ "x3:" + X3 + ","
+ "x4:" + X4 + ","
+ "x5:" + X5 + ","
+ "x6:" + X6 + ","
+ "x7:" + Luban.StringUtil.CollectionToString(X7) + ","
+ "}";
}
}
}

60
Assets/Gen/Bobber.cs Normal file
View File

@@ -0,0 +1,60 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class Bobber : Luban.BeanBase
{
public Bobber(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ if(!_buf["displacement"].IsNumber) { throw new SerializationException(); } Displacement = _buf["displacement"]; }
{ var __json0 = _buf["night_light"]; if(!__json0.IsArray) { throw new SerializationException(); } NightLight = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } NightLight.Add(__v0); } }
}
public static Bobber DeserializeBobber(JSONNode _buf)
{
return new Bobber(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 位移
/// </summary>
public readonly int Displacement;
/// <summary>
/// 是否夜光
/// </summary>
public readonly System.Collections.Generic.List<float> NightLight;
public const int __ID__ = 1995051738;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "displacement:" + Displacement + ","
+ "nightLight:" + Luban.StringUtil.CollectionToString(NightLight) + ","
+ "}";
}
}
}

60
Assets/Gen/Feeder.cs Normal file
View File

@@ -0,0 +1,60 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class Feeder : Luban.BeanBase
{
public Feeder(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ if(!_buf["capacity"].IsNumber) { throw new SerializationException(); } Capacity = _buf["capacity"]; }
{ if(!_buf["weight"].IsNumber) { throw new SerializationException(); } Weight = _buf["weight"]; }
}
public static Feeder DeserializeFeeder(JSONNode _buf)
{
return new Feeder(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 能力
/// </summary>
public readonly int Capacity;
/// <summary>
/// 重量(克)
/// </summary>
public readonly int Weight;
public const int __ID__ = 2100424427;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "capacity:" + Capacity + ","
+ "weight:" + Weight + ","
+ "}";
}
}
}

78
Assets/Gen/Fish.cs Normal file
View File

@@ -0,0 +1,78 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class Fish : Luban.BeanBase
{
public Fish(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; }
{ if(!_buf["model"].IsString) { throw new SerializationException(); } Model = _buf["model"]; }
{ if(!_buf["min_weight"].IsNumber) { throw new SerializationException(); } MinWeight = _buf["min_weight"]; }
{ if(!_buf["max_weight"].IsNumber) { throw new SerializationException(); } MaxWeight = _buf["max_weight"]; }
{ if(!_buf["accept"].IsNumber) { throw new SerializationException(); } Accept = _buf["accept"]; }
}
public static Fish DeserializeFish(JSONNode _buf)
{
return new Fish(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 鱼名字
/// </summary>
public readonly string Name;
/// <summary>
/// 模型
/// </summary>
public readonly string Model;
/// <summary>
/// 最小重量(克)
/// </summary>
public readonly int MinWeight;
/// <summary>
/// 最大重量(克)
/// </summary>
public readonly int MaxWeight;
/// <summary>
/// 接受的鱼饵配置组
/// </summary>
public readonly int Accept;
public const int __ID__ = 2189944;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "model:" + Model + ","
+ "minWeight:" + MinWeight + ","
+ "maxWeight:" + MaxWeight + ","
+ "accept:" + Accept + ","
+ "}";
}
}
}

54
Assets/Gen/Hook.cs Normal file
View File

@@ -0,0 +1,54 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class Hook : Luban.BeanBase
{
public Hook(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ if(!_buf["ding"].IsNumber) { throw new SerializationException(); } Ding = _buf["ding"]; }
}
public static Hook DeserializeHook(JSONNode _buf)
{
return new Hook(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 长钉
/// </summary>
public readonly int Ding;
public const int __ID__ = 2255171;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "ding:" + Ding + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,54 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class InitItemConfig : Luban.BeanBase
{
public InitItemConfig(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ if(!_buf["count"].IsNumber) { throw new SerializationException(); } Count = _buf["count"]; }
}
public static InitItemConfig DeserializeInitItemConfig(JSONNode _buf)
{
return new InitItemConfig(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 数量
/// </summary>
public readonly int Count;
public const int __ID__ = 1451166085;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "count:" + Count + ","
+ "}";
}
}
}

96
Assets/Gen/Item.cs Normal file
View File

@@ -0,0 +1,96 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class Item : Luban.BeanBase
{
public Item(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ if(!_buf["model"].IsString) { throw new SerializationException(); } Model = _buf["model"]; }
{ if(!_buf["type"].IsNumber) { throw new SerializationException(); } Type = _buf["type"]; }
{ if(!_buf["quality"].IsNumber) { throw new SerializationException(); } Quality = _buf["quality"]; }
{ if(!_buf["brand"].IsNumber) { throw new SerializationException(); } Brand = _buf["brand"]; }
{ if(!_buf["weight"].IsNumber) { throw new SerializationException(); } Weight = _buf["weight"]; }
{ if(!_buf["length"].IsNumber) { throw new SerializationException(); } Length = _buf["length"]; }
{ if(!_buf["max"].IsNumber) { throw new SerializationException(); } Max = _buf["max"]; }
{ if(!_buf["auto_use"].IsNumber) { throw new SerializationException(); } AutoUse = _buf["auto_use"]; }
}
public static Item DeserializeItem(JSONNode _buf)
{
return new Item(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 模型
/// </summary>
public readonly string Model;
/// <summary>
/// 子类型
/// </summary>
public readonly int Type;
/// <summary>
/// 品质
/// </summary>
public readonly int Quality;
/// <summary>
/// 品牌
/// </summary>
public readonly int Brand;
/// <summary>
/// 重量(克)
/// </summary>
public readonly int Weight;
/// <summary>
/// 长度(毫米)
/// </summary>
public readonly int Length;
/// <summary>
/// 最大堆叠数量
/// </summary>
public readonly int Max;
/// <summary>
/// 获得自动使用
/// </summary>
public readonly int AutoUse;
public const int __ID__ = 2289459;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "model:" + Model + ","
+ "type:" + Type + ","
+ "quality:" + Quality + ","
+ "brand:" + Brand + ","
+ "weight:" + Weight + ","
+ "length:" + Length + ","
+ "max:" + Max + ","
+ "autoUse:" + AutoUse + ","
+ "}";
}
}
}

60
Assets/Gen/Line.cs Normal file
View File

@@ -0,0 +1,60 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class Line : Luban.BeanBase
{
public Line(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ if(!_buf["strength"].IsNumber) { throw new SerializationException(); } Strength = _buf["strength"]; }
{ if(!_buf["size"].IsNumber) { throw new SerializationException(); } Size = _buf["size"]; }
}
public static Line DeserializeLine(JSONNode _buf)
{
return new Line(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 强度
/// </summary>
public readonly int Strength;
/// <summary>
/// 尺寸
/// </summary>
public readonly int Size;
public const int __ID__ = 2368532;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "strength:" + Strength + ","
+ "size:" + Size + ","
+ "}";
}
}
}

66
Assets/Gen/Lure.cs Normal file
View File

@@ -0,0 +1,66 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class Lure : Luban.BeanBase
{
public Lure(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ var __json0 = _buf["hook"]; if(!__json0.IsArray) { throw new SerializationException(); } Hook = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Hook.Add(__v0); } }
{ if(!_buf["hook_num"].IsNumber) { throw new SerializationException(); } HookNum = _buf["hook_num"]; }
{ if(!_buf["efficacy_base"].IsNumber) { throw new SerializationException(); } EfficacyBase = _buf["efficacy_base"]; }
}
public static Lure DeserializeLure(JSONNode _buf)
{
return new Lure(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 鱼钩
/// </summary>
public readonly System.Collections.Generic.List<int> Hook;
/// <summary>
/// 装配鱼钩数量
/// </summary>
public readonly int HookNum;
/// <summary>
/// 吸引力
/// </summary>
public readonly int EfficacyBase;
public const int __ID__ = 2380188;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "hook:" + Luban.StringUtil.CollectionToString(Hook) + ","
+ "hookNum:" + HookNum + ","
+ "efficacyBase:" + EfficacyBase + ","
+ "}";
}
}
}

66
Assets/Gen/Reel.cs Normal file
View File

@@ -0,0 +1,66 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class Reel : Luban.BeanBase
{
public Reel(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ if(!_buf["reel_type"].IsNumber) { throw new SerializationException(); } ReelType = _buf["reel_type"]; }
{ var __json0 = _buf["gear_ratio"]; if(!__json0.IsArray) { throw new SerializationException(); } GearRatio = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } GearRatio.Add(__v0); } }
{ if(!_buf["strength"].IsNumber) { throw new SerializationException(); } Strength = _buf["strength"]; }
}
public static Reel DeserializeReel(JSONNode _buf)
{
return new Reel(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 鱼轮类型
/// </summary>
public readonly int ReelType;
/// <summary>
/// 组件比
/// </summary>
public readonly System.Collections.Generic.List<float> GearRatio;
/// <summary>
/// 强度
/// </summary>
public readonly int Strength;
public const int __ID__ = 2543162;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "reelType:" + ReelType + ","
+ "gearRatio:" + Luban.StringUtil.CollectionToString(GearRatio) + ","
+ "strength:" + Strength + ","
+ "}";
}
}
}

78
Assets/Gen/Rod.cs Normal file
View File

@@ -0,0 +1,78 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public sealed partial class Rod : Luban.BeanBase
{
public Rod(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ if(!_buf["rod_type"].IsNumber) { throw new SerializationException(); } RodType = _buf["rod_type"]; }
{ if(!_buf["ring"].IsNumber) { throw new SerializationException(); } Ring = _buf["ring"]; }
{ if(!_buf["strength"].IsNumber) { throw new SerializationException(); } Strength = _buf["strength"]; }
{ if(!_buf["max_range"].IsNumber) { throw new SerializationException(); } MaxRange = _buf["max_range"]; }
{ if(!_buf["construction_type"].IsNumber) { throw new SerializationException(); } ConstructionType = _buf["construction_type"]; }
}
public static Rod DeserializeRod(JSONNode _buf)
{
return new Rod(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 鱼竿类型
/// </summary>
public readonly int RodType;
/// <summary>
/// 导线圈
/// </summary>
public readonly int Ring;
/// <summary>
/// 强度
/// </summary>
public readonly int Strength;
/// <summary>
/// 最大范围
/// </summary>
public readonly int MaxRange;
/// <summary>
/// 结构类型
/// </summary>
public readonly int ConstructionType;
public const int __ID__ = 82343;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "rodType:" + RodType + ","
+ "ring:" + Ring + ","
+ "strength:" + Strength + ","
+ "maxRange:" + MaxRange + ","
+ "constructionType:" + ConstructionType + ","
+ "}";
}
}
}

100
Assets/Gen/Tables.cs Normal file
View File

@@ -0,0 +1,100 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public partial class Tables
{
/// <summary>
/// 鱼饵
/// </summary>
public TbBait TbBait {get; }
/// <summary>
/// 全局常量配置表
/// </summary>
public TbBasicConfig TbBasicConfig {get; }
/// <summary>
/// 浮漂
/// </summary>
public TbBobber TbBobber {get; }
/// <summary>
/// 菲德
/// </summary>
public TbFeeder TbFeeder {get; }
/// <summary>
/// 鱼
/// </summary>
public TbFish TbFish {get; }
/// <summary>
/// 鱼钩
/// </summary>
public TbHook TbHook {get; }
/// <summary>
/// 初始物品表
/// </summary>
public TbInitItemConfig TbInitItemConfig {get; }
/// <summary>
/// 物品表
/// </summary>
public TbItem TbItem {get; }
/// <summary>
/// 鱼线
/// </summary>
public TbLine TbLine {get; }
/// <summary>
/// 路亚饵
/// </summary>
public TbLure TbLure {get; }
/// <summary>
/// 渔轮
/// </summary>
public TbReel TbReel {get; }
/// <summary>
/// 鱼竿
/// </summary>
public TbRod TbRod {get; }
public Tables(System.Func<string, JSONNode> loader)
{
TbBait = new TbBait(loader("tbbait"));
TbBasicConfig = new TbBasicConfig(loader("tbbasicconfig"));
TbBobber = new TbBobber(loader("tbbobber"));
TbFeeder = new TbFeeder(loader("tbfeeder"));
TbFish = new TbFish(loader("tbfish"));
TbHook = new TbHook(loader("tbhook"));
TbInitItemConfig = new TbInitItemConfig(loader("tbinititemconfig"));
TbItem = new TbItem(loader("tbitem"));
TbLine = new TbLine(loader("tbline"));
TbLure = new TbLure(loader("tblure"));
TbReel = new TbReel(loader("tbreel"));
TbRod = new TbRod(loader("tbrod"));
ResolveRef();
}
private void ResolveRef()
{
TbBait.ResolveRef(this);
TbBasicConfig.ResolveRef(this);
TbBobber.ResolveRef(this);
TbFeeder.ResolveRef(this);
TbFish.ResolveRef(this);
TbHook.ResolveRef(this);
TbInitItemConfig.ResolveRef(this);
TbItem.ResolveRef(this);
TbLine.ResolveRef(this);
TbLure.ResolveRef(this);
TbReel.ResolveRef(this);
TbRod.ResolveRef(this);
}
}
}

57
Assets/Gen/TbBait.cs Normal file
View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 鱼饵
/// </summary>
public partial class TbBait
{
private readonly System.Collections.Generic.Dictionary<int, Bait> _dataMap;
private readonly System.Collections.Generic.List<Bait> _dataList;
public TbBait(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, Bait>(count);
_dataList = new System.Collections.Generic.List<Bait>(count);
foreach(JSONNode _ele in _buf.Children)
{
Bait _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.Bait.DeserializeBait(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, Bait> DataMap => _dataMap;
public System.Collections.Generic.List<Bait> DataList => _dataList;
public Bait GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public Bait Get(int key) => _dataMap[key];
public Bait this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 全局常量配置表
/// </summary>
public partial class TbBasicConfig
{
private readonly System.Collections.Generic.Dictionary<int, BasicConfig> _dataMap;
private readonly System.Collections.Generic.List<BasicConfig> _dataList;
public TbBasicConfig(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, BasicConfig>(count);
_dataList = new System.Collections.Generic.List<BasicConfig>(count);
foreach(JSONNode _ele in _buf.Children)
{
BasicConfig _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.BasicConfig.DeserializeBasicConfig(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.X1, _v);
}
}
public System.Collections.Generic.Dictionary<int, BasicConfig> DataMap => _dataMap;
public System.Collections.Generic.List<BasicConfig> DataList => _dataList;
public BasicConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public BasicConfig Get(int key) => _dataMap[key];
public BasicConfig this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

57
Assets/Gen/TbBobber.cs Normal file
View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 浮漂
/// </summary>
public partial class TbBobber
{
private readonly System.Collections.Generic.Dictionary<int, Bobber> _dataMap;
private readonly System.Collections.Generic.List<Bobber> _dataList;
public TbBobber(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, Bobber>(count);
_dataList = new System.Collections.Generic.List<Bobber>(count);
foreach(JSONNode _ele in _buf.Children)
{
Bobber _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.Bobber.DeserializeBobber(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, Bobber> DataMap => _dataMap;
public System.Collections.Generic.List<Bobber> DataList => _dataList;
public Bobber GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public Bobber Get(int key) => _dataMap[key];
public Bobber this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

57
Assets/Gen/TbFeeder.cs Normal file
View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 菲德
/// </summary>
public partial class TbFeeder
{
private readonly System.Collections.Generic.Dictionary<int, Feeder> _dataMap;
private readonly System.Collections.Generic.List<Feeder> _dataList;
public TbFeeder(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, Feeder>(count);
_dataList = new System.Collections.Generic.List<Feeder>(count);
foreach(JSONNode _ele in _buf.Children)
{
Feeder _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.Feeder.DeserializeFeeder(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, Feeder> DataMap => _dataMap;
public System.Collections.Generic.List<Feeder> DataList => _dataList;
public Feeder GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public Feeder Get(int key) => _dataMap[key];
public Feeder this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

57
Assets/Gen/TbFish.cs Normal file
View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 鱼
/// </summary>
public partial class TbFish
{
private readonly System.Collections.Generic.Dictionary<int, Fish> _dataMap;
private readonly System.Collections.Generic.List<Fish> _dataList;
public TbFish(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, Fish>(count);
_dataList = new System.Collections.Generic.List<Fish>(count);
foreach(JSONNode _ele in _buf.Children)
{
Fish _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.Fish.DeserializeFish(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, Fish> DataMap => _dataMap;
public System.Collections.Generic.List<Fish> DataList => _dataList;
public Fish GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public Fish Get(int key) => _dataMap[key];
public Fish this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

57
Assets/Gen/TbHook.cs Normal file
View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 鱼钩
/// </summary>
public partial class TbHook
{
private readonly System.Collections.Generic.Dictionary<int, Hook> _dataMap;
private readonly System.Collections.Generic.List<Hook> _dataList;
public TbHook(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, Hook>(count);
_dataList = new System.Collections.Generic.List<Hook>(count);
foreach(JSONNode _ele in _buf.Children)
{
Hook _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.Hook.DeserializeHook(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, Hook> DataMap => _dataMap;
public System.Collections.Generic.List<Hook> DataList => _dataList;
public Hook GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public Hook Get(int key) => _dataMap[key];
public Hook this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 初始物品表
/// </summary>
public partial class TbInitItemConfig
{
private readonly System.Collections.Generic.Dictionary<int, InitItemConfig> _dataMap;
private readonly System.Collections.Generic.List<InitItemConfig> _dataList;
public TbInitItemConfig(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, InitItemConfig>(count);
_dataList = new System.Collections.Generic.List<InitItemConfig>(count);
foreach(JSONNode _ele in _buf.Children)
{
InitItemConfig _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.InitItemConfig.DeserializeInitItemConfig(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, InitItemConfig> DataMap => _dataMap;
public System.Collections.Generic.List<InitItemConfig> DataList => _dataList;
public InitItemConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public InitItemConfig Get(int key) => _dataMap[key];
public InitItemConfig this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

57
Assets/Gen/TbItem.cs Normal file
View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 物品表
/// </summary>
public partial class TbItem
{
private readonly System.Collections.Generic.Dictionary<int, Item> _dataMap;
private readonly System.Collections.Generic.List<Item> _dataList;
public TbItem(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, Item>(count);
_dataList = new System.Collections.Generic.List<Item>(count);
foreach(JSONNode _ele in _buf.Children)
{
Item _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.Item.DeserializeItem(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, Item> DataMap => _dataMap;
public System.Collections.Generic.List<Item> DataList => _dataList;
public Item GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public Item Get(int key) => _dataMap[key];
public Item this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

57
Assets/Gen/TbLine.cs Normal file
View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 鱼线
/// </summary>
public partial class TbLine
{
private readonly System.Collections.Generic.Dictionary<int, Line> _dataMap;
private readonly System.Collections.Generic.List<Line> _dataList;
public TbLine(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, Line>(count);
_dataList = new System.Collections.Generic.List<Line>(count);
foreach(JSONNode _ele in _buf.Children)
{
Line _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.Line.DeserializeLine(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, Line> DataMap => _dataMap;
public System.Collections.Generic.List<Line> DataList => _dataList;
public Line GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public Line Get(int key) => _dataMap[key];
public Line this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

57
Assets/Gen/TbLure.cs Normal file
View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 路亚饵
/// </summary>
public partial class TbLure
{
private readonly System.Collections.Generic.Dictionary<int, Lure> _dataMap;
private readonly System.Collections.Generic.List<Lure> _dataList;
public TbLure(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, Lure>(count);
_dataList = new System.Collections.Generic.List<Lure>(count);
foreach(JSONNode _ele in _buf.Children)
{
Lure _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.Lure.DeserializeLure(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, Lure> DataMap => _dataMap;
public System.Collections.Generic.List<Lure> DataList => _dataList;
public Lure GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public Lure Get(int key) => _dataMap[key];
public Lure this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

57
Assets/Gen/TbReel.cs Normal file
View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 渔轮
/// </summary>
public partial class TbReel
{
private readonly System.Collections.Generic.Dictionary<int, Reel> _dataMap;
private readonly System.Collections.Generic.List<Reel> _dataList;
public TbReel(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, Reel>(count);
_dataList = new System.Collections.Generic.List<Reel>(count);
foreach(JSONNode _ele in _buf.Children)
{
Reel _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.Reel.DeserializeReel(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, Reel> DataMap => _dataMap;
public System.Collections.Generic.List<Reel> DataList => _dataList;
public Reel GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public Reel Get(int key) => _dataMap[key];
public Reel this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

57
Assets/Gen/TbRod.cs Normal file
View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 cfg
{
/// <summary>
/// 鱼竿
/// </summary>
public partial class TbRod
{
private readonly System.Collections.Generic.Dictionary<int, Rod> _dataMap;
private readonly System.Collections.Generic.List<Rod> _dataList;
public TbRod(JSONNode _buf)
{
int count = _buf.Count;
_dataMap = new System.Collections.Generic.Dictionary<int, Rod>(count);
_dataList = new System.Collections.Generic.List<Rod>(count);
foreach(JSONNode _ele in _buf.Children)
{
Rod _v;
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.Rod.DeserializeRod(_ele); }
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, Rod> DataMap => _dataMap;
public System.Collections.Generic.List<Rod> DataList => _dataList;
public Rod GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
public Rod Get(int key) => _dataMap[key];
public Rod this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

46
Assets/Gen/vector2.cs Normal file
View File

@@ -0,0 +1,46 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public partial struct vector2
{
public vector2(JSONNode _buf)
{
{ if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; }
{ if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; }
}
public static vector2 Deserializevector2(JSONNode _buf)
{
return new vector2(_buf);
}
public readonly float X;
public readonly float Y;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "x:" + X + ","
+ "y:" + Y + ","
+ "}";
}
}
}

49
Assets/Gen/vector3.cs Normal file
View File

@@ -0,0 +1,49 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public partial struct vector3
{
public vector3(JSONNode _buf)
{
{ if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; }
{ if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; }
{ if(!_buf["z"].IsNumber) { throw new SerializationException(); } Z = _buf["z"]; }
}
public static vector3 Deserializevector3(JSONNode _buf)
{
return new vector3(_buf);
}
public readonly float X;
public readonly float Y;
public readonly float Z;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "x:" + X + ","
+ "y:" + Y + ","
+ "z:" + Z + ","
+ "}";
}
}
}

52
Assets/Gen/vector4.cs Normal file
View File

@@ -0,0 +1,52 @@
//------------------------------------------------------------------------------
// <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 cfg
{
public partial struct vector4
{
public vector4(JSONNode _buf)
{
{ if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; }
{ if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; }
{ if(!_buf["z"].IsNumber) { throw new SerializationException(); } Z = _buf["z"]; }
{ if(!_buf["w"].IsNumber) { throw new SerializationException(); } W = _buf["w"]; }
}
public static vector4 Deserializevector4(JSONNode _buf)
{
return new vector4(_buf);
}
public readonly float X;
public readonly float Y;
public readonly float Z;
public readonly float W;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "x:" + X + ","
+ "y:" + Y + ","
+ "z:" + Z + ","
+ "w:" + W + ","
+ "}";
}
}
}