This commit is contained in:
2026-02-20 21:03:17 +08:00
parent 6cf9b8df56
commit 27a1f9d084
920 changed files with 196579 additions and 6801 deletions

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 65341d2b856a4aef82e238b10798b430
timeCreated: 1771091754

View File

@@ -0,0 +1,15 @@
using UnityEngine.SceneManagement;
namespace NBF
{
public class PreviewManager : MonoService<PreviewManager>
{
private Scene _scene;
protected override void OnAwake()
{
_scene = SceneManager.CreateScene("RuntimePreviewScene",
new CreateSceneParameters(LocalPhysicsMode.None));
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d3ee9b922c69484282c9080842cb1d02
timeCreated: 1771091765

View File

@@ -0,0 +1,18 @@
using UnityEngine.InputSystem;
namespace NBF.Setting
{
public abstract class ControllerInputOption : InputOption
{
protected override bool IsBindingContains(InputBinding binding)
{
var path = binding.path;
if (path.Contains("<Keyboard>") || path.Contains("<Mouse>"))
{
return true;
}
return false;
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c3ed7d01cac8436fb64fef818e33f173
timeCreated: 1770998136

View File

@@ -1,8 +1,9 @@
using System.Collections.Generic;
using NBF;
namespace NBF
namespace cfg
{
public partial class GoodsConfig
public partial class Goods
{
private List<AwardData> _awards;
@@ -15,7 +16,7 @@ namespace NBF
_awards = new List<AwardData>();
foreach (var item in Items)
{
_awards.Add(new AwardData(item));
_awards.Add(new AwardData(item.ToString()));
}
}

View File

@@ -2,13 +2,13 @@
{
public class AwardData
{
public uint Id;
public int Id;
public int Amount;
public AwardData(string str)
{
string[] parts = str.Split('|');
Id = uint.Parse(parts[0]);
Id = int.Parse(parts[0]);
if (parts.Length > 1)
{
Amount = int.Parse(parts[1]);

View File

@@ -6,11 +6,11 @@ namespace Fantasy
{
public partial class ItemInfo
{
private ItemConfig _config;
private cfg.Item _config;
public ItemConfig Config
public cfg.Item Config
{
get { return _config ??= ItemConfig.Get(ConfigId); }
get { return _config ??= Game.Tables.TbItem.Get((int)ConfigId); }
}
public ItemType ItemType => ConfigId.GetItemType();

View File

@@ -0,0 +1,17 @@
using NBF;
using NBF.Utils;
namespace Fantasy
{
public partial class ShopItemInfo
{
private cfg.Item _config;
public cfg.Item Config
{
get { return _config ??= Game.Tables.TbItem.Get((int)ConfigId); }
}
public ItemType ItemType => ConfigId.GetItemType();
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 016ac941a6d84e699041f87740b9f550
timeCreated: 1771306262

View File

@@ -5,22 +5,22 @@ namespace NBF
{
public static class GObjectExtensions
{
public static void SetQuality(this GImage image, uint quality)
public static void SetQuality(this GImage image, int quality)
{
image.color = ItemHelper.GetItemQualityColor(quality);
}
public static void SetQuality(this GTextField image, uint quality)
public static void SetQuality(this GTextField image, int quality)
{
image.strokeColor = ItemHelper.GetItemQualityColor(quality);
}
public static void SetTitleQuality(this GButton com, uint quality)
public static void SetTitleQuality(this GButton com, int quality)
{
com.GetTextField().strokeColor = ItemHelper.GetItemQualityColor(quality);
}
public static void SetTitleQuality(this GTextField com, uint quality)
public static void SetTitleQuality(this GTextField com, int quality)
{
com.strokeColor = ItemHelper.GetItemQualityColor(quality);
}

View File

@@ -7,34 +7,25 @@ namespace NBF
{
public static class IConfigTableExtensions
{
public static string GetName(this IConfigTable config)
{
return config.Key.GetName();
}
public static string GetDesc(this IConfigTable config)
{
return config.Key.GetDesc();
}
public static string GetModelPath(this ItemConfig config)
public static string GetModelPath(this cfg.Item config)
{
return $"Assets/ResRaw/gfx/{config.Model}.prefab";
}
public static GameObject GetModelPrefab(this ItemConfig config)
public static GameObject GetModelPrefab(this cfg.Item config)
{
return Assets.Load<GameObject>(config.GetModelPath());
}
public static GameObject Instantiate(this ItemConfig config, Transform parent, Vector3 position,
public static GameObject Instantiate(this cfg.Item config, Transform parent, Vector3 position,
Quaternion rotation)
{
return Object.Instantiate(config.GetModelPrefab(), position, rotation, parent);
}
public static T InstantiateAndComponent<T>(this ItemConfig config, Transform parent, Vector3 position,
public static T InstantiateAndComponent<T>(this cfg.Item config, Transform parent, Vector3 position,
Quaternion rotation) where T : MonoBehaviour
{
var obj = config.Instantiate(parent, position, rotation);
@@ -47,7 +38,7 @@ namespace NBF
return com;
}
public static T InstantiateAndComponent<T>(this ItemConfig config) where T : MonoBehaviour
public static T InstantiateAndComponent<T>(this cfg.Item config) where T : MonoBehaviour
{
var obj = Object.Instantiate(config.GetModelPrefab());
var com = obj.GetComponent<T>();

View File

@@ -7,41 +7,44 @@ namespace NBF.Utils
{
public static class ItemHelper
{
public static string GetFullModelPath(this ItemConfig config)
public static string GetFullModelPath(this cfg.Item config)
{
//Assets/ResRaw/gfx/hooks/alliance/c_hook_20789_20794/c_hook_20789.prefab
return $"Assets/ResRaw/gfx/{config.Model}.prefab"; //Path.Combine("Assets/ResRaw/gfx", config.Model);
}
public static ItemType GetItemType(this int id)
{
return (ItemType)(id / 10000);
}
public static ItemType GetItemType(this uint id)
{
return (ItemType)(id / 10000);
}
public static string GetName(this uint id)
public static string GetName(this int id)
{
return Lan.Get($"Name_{id}");
}
public static string GetDesc(this uint id)
public static string GetDesc(this int id)
{
return Lan.Get($"Desc_{id}");
}
public static string GetIcon(this uint id)
public static string GetIcon(this int id)
{
//Assets/Resources/Icons/baitfrog.png
////$"Icons/{id}";
return UIPackage.GetItemURL(UIDef.Pack.CommonIcon, id.ToString());
}
public static void SetIcon(this GLoader loader, uint id)
public static void SetIcon(this GLoader loader, int id)
{
loader.url = id.GetIcon();
}
public static void SetIcon(this GComponent loader, uint id)
public static void SetIcon(this GComponent loader, int id)
{
loader.icon = id.GetIcon();
}
@@ -55,7 +58,7 @@ namespace NBF.Utils
public static Color QualityColor4 = new Color(220 / 255f, 50 / 255f, 50 / 255f, 1);
public static Color QualityColor5 = new Color(255 / 255f, 108 / 255f, 0 / 255f, 1);
public static Color GetItemQualityColor(uint quality)
public static Color GetItemQualityColor(int quality)
{
return quality switch
{

View File

@@ -86,7 +86,7 @@ public class SceneSettings : MonoBehaviour
private void UpdateTimeOfDay()
{
var p = GameTimer.GetGameDayProgress();
Debug.Log(p);
// Debug.Log(p);
EnviroManager.instance.Time.SetTimeOfDay(GameTimer.GetGameDayProgress() * 24f);
// if(AzureCoreSystem)
// AzureCoreSystem.timeSystem.timeline = 24F * p;

View File

@@ -1,8 +1,8 @@
{
"name": "FairyGUI.Editor",
"name": "FairyGUI-Editor",
"rootNamespace": "",
"references": [
"GUID:8c8f9d96103e94a7da84b012fd7e9f13"
"FairyGUI"
],
"includePlatforms": [
"Editor"

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: f91e78d2be1f8ce48a1b3d8e8c4eaddb
guid: f11907887f480418c8c693a619e2dbf0
AssemblyDefinitionImporter:
externalObjects: {}
userData:

View File

@@ -36,7 +36,7 @@ namespace NBF.Fishing2
/// <param name="config"></param>
/// <param name="isPreview">是否预览模式</param>
/// <returns></returns>
public static GameObject CreateItem(ItemConfig config, bool isPreview = false)
public static GameObject CreateItem(cfg.Item config, bool isPreview = false)
{
//创建主物体
var mainObject = LoadPrefab(config.GetFullModelPath());

View File

@@ -761,6 +761,28 @@ namespace NBF
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""9d5c7915-aedc-4371-92ac-0a262fb75a5b"",
""path"": ""<Keyboard>/rightBracket"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""AddBob"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""c469d6ac-f3e8-4441-9707-8444aafed203"",
""path"": ""<Gamepad>/buttonSouth"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""AddBob"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""23229eb8-1408-476c-ab39-a85cec86d2fa"",
@@ -772,6 +794,17 @@ namespace NBF
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""af4b238f-3ced-41db-b9bb-443d3e51d179"",
""path"": ""<Gamepad>/buttonNorth"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""SubBob"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""bb2cdeeb-8818-4958-982c-144f48b52c2e"",
@@ -794,6 +827,17 @@ namespace NBF
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""e77e2fb4-f5a7-4e4e-87f9-081dc778d234"",
""path"": ""<Gamepad>/buttonEast"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Help"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""815dc5ee-4737-4312-98c5-01670023c90b"",

View File

@@ -1,12 +1,14 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using FairyGUI;
using Fantasy;
using Fantasy.Async;
using NBC;
using NBC.Asset;
using NBF.Fishing2;
using SimpleJSON;
using UnityEngine;
using Log = Fantasy.Log;
@@ -16,10 +18,12 @@ namespace NBF
{
public static Game Instance { get; private set; }
private static Scene _scene;
public static Scene Main => _scene;
private static cfg.Tables _tables;
public static cfg.Tables Tables => _tables;
private static event Action OnInitialized;
public static event Action OnUpdate;
public static event Action OnLateUpdate;
@@ -92,7 +96,7 @@ namespace NBF
// }
gameObject.AddComponent<Settings>();
// 1. 初始化 Fantasy 框架
await Fantasy.Platform.Unity.Entry.Initialize();
@@ -113,19 +117,17 @@ namespace NBF
private void LoadData()
{
Stopwatch stopwatch = new Stopwatch();
stopwatch.Start();
var jsonAsset = Assets.Load<TextAsset>("Config/configs");
if (jsonAsset != null)
{
ConfigTableHelper.Initialize(jsonAsset.text);
}
stopwatch.Stop();
Log.Info($"解析表格耗时={stopwatch.ElapsedMilliseconds}");
// ConfigAssets.Init();
// 一行代码可以加载所有配置。 cfg.Tables 包含所有表的一个实例字段。
_tables = new cfg.Tables(LoadJson);
}
private static JSONNode LoadJson(string file)
{
// var json = File.ReadAllText($"{your_json_dir}/{file}.json", System.Text.Encoding.UTF8);
//Assets/ResRaw/config/tb/tbbait.json
var jsonAsset = Assets.Load<TextAsset>($"Assets/ResRaw/config/tb/{file}.json");
return JSON.Parse(jsonAsset.text);
}
#endregion
#region
@@ -160,7 +162,7 @@ namespace NBF
UIConfig.verticalScrollBar = "ui://6hgkvlauoomej";
UIConfig.defaultFont = "AlibabaPuHuiTi-3-Medium";
UI.Inst.SetUILanguage<UILangeageConfig>();
UIConfig.modalLayerColor = new Color(1, 1, 1, 0.2f);
UIConfig.modalLayerColor = new Color(0, 0, 0, 0.92f);
AddUIPackages();
}

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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: f3c09d4c91a82d041b77d6e81ffe6607

View File

@@ -1,87 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class BaitConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public uint EfficacyBase { get; set; } // 吸引力
[ProtoMember(3)]
public uint[] Arr { get; set; } = Array.Empty<uint>(); // 重量(克)
[ProtoMember(4)]
public string[] ArrStr { get; set; } = Array.Empty<string>(); // 重量(克)
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<BaitConfig> Context => ConfigTableHelper.Table<BaitConfig>();
public static BaitConfig Get(uint key)
{
return Context.Get(key);
}
public static BaitConfig Get(Predicate<BaitConfig> match)
{
return Context.Get(match);
}
public static BaitConfig Fist()
{
return Context.Fist();
}
public static BaitConfig Last()
{
return Context.Last();
}
public static BaitConfig Fist(Predicate<BaitConfig> match)
{
return Context.Fist(match);
}
public static BaitConfig Last(Predicate<BaitConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<BaitConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<BaitConfig> GetList()
{
return Context.GetList();
}
public static List<BaitConfig> GetList(Predicate<BaitConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<BaitConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 606b570b0b5860049a7c04db0184bf73

View File

@@ -1,85 +1,69 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
//------------------------------------------------------------------------------
// <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
{
[ProtoContract]
public sealed partial class BasicConfig : ASerialize, IConfigTable
public sealed partial class BasicConfig : Luban.BeanBase
{
public BasicConfig(JSONNode _buf)
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public string Name { get; set; } // 参数名
[ProtoMember(3)]
public string[] Val { get; set; } = Array.Empty<string>(); // 参数值
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<BasicConfig> Context => ConfigTableHelper.Table<BasicConfig>();
public static BasicConfig Get(uint key)
{
return Context.Get(key);
}
public static BasicConfig Get(Predicate<BasicConfig> match)
{
return Context.Get(match);
}
public static BasicConfig Fist()
{
return Context.Fist();
}
public static BasicConfig Last()
{
return Context.Last();
}
public static BasicConfig Fist(Predicate<BasicConfig> match)
{
return Context.Fist(match);
}
public static BasicConfig Last(Predicate<BasicConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<BasicConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<BasicConfig> GetList()
{
return Context.GetList();
}
public static List<BasicConfig> GetList(Predicate<BasicConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<BasicConfig>(arr);
}
#endregion
{ 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) + ","
+ "}";
}
}
}

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) + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: d902af8c14def8b43bf74c964bdc8c3e

View File

@@ -1,85 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class BobberConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public uint Displacement { get; set; } // 位移
[ProtoMember(3)]
public uint NightLight { get; set; } // 是否夜光
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<BobberConfig> Context => ConfigTableHelper.Table<BobberConfig>();
public static BobberConfig Get(uint key)
{
return Context.Get(key);
}
public static BobberConfig Get(Predicate<BobberConfig> match)
{
return Context.Get(match);
}
public static BobberConfig Fist()
{
return Context.Fist();
}
public static BobberConfig Last()
{
return Context.Last();
}
public static BobberConfig Fist(Predicate<BobberConfig> match)
{
return Context.Fist(match);
}
public static BobberConfig Last(Predicate<BobberConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<BobberConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<BobberConfig> GetList()
{
return Context.GetList();
}
public static List<BobberConfig> GetList(Predicate<BobberConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<BobberConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: ed66bec4f9191494db6d22d54034c86d

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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: f8ebf5ccf9b5e8e4ba1e7af22fa9fe5f

View File

@@ -1,85 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class FeederConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public uint Capacity { get; set; } // 能力
[ProtoMember(3)]
public uint Weight { get; set; } // 重量(克)
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<FeederConfig> Context => ConfigTableHelper.Table<FeederConfig>();
public static FeederConfig Get(uint key)
{
return Context.Get(key);
}
public static FeederConfig Get(Predicate<FeederConfig> match)
{
return Context.Get(match);
}
public static FeederConfig Fist()
{
return Context.Fist();
}
public static FeederConfig Last()
{
return Context.Last();
}
public static FeederConfig Fist(Predicate<FeederConfig> match)
{
return Context.Fist(match);
}
public static FeederConfig Last(Predicate<FeederConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<FeederConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<FeederConfig> GetList()
{
return Context.GetList();
}
public static List<FeederConfig> GetList(Predicate<FeederConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<FeederConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 3f5cf9ae363b3bc46adb0ff67f428f25

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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 7aaac9ec1a5f258459f4e0a738a52707

View File

@@ -1,93 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class FishConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public string[] Model { get; set; } = Array.Empty<string>(); // 模型
[ProtoMember(3)]
public uint Type { get; set; } // 类型
[ProtoMember(4)]
public uint SpeciesName { get; set; } // 鱼类型Id
[ProtoMember(5)]
public uint MinWeight { get; set; } // 最小重量(克)
[ProtoMember(6)]
public uint MaxWeight { get; set; } // 最大重量(克)
[ProtoMember(7)]
public uint Accept { get; set; } // 接受饵
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<FishConfig> Context => ConfigTableHelper.Table<FishConfig>();
public static FishConfig Get(uint key)
{
return Context.Get(key);
}
public static FishConfig Get(Predicate<FishConfig> match)
{
return Context.Get(match);
}
public static FishConfig Fist()
{
return Context.Fist();
}
public static FishConfig Last()
{
return Context.Last();
}
public static FishConfig Fist(Predicate<FishConfig> match)
{
return Context.Fist(match);
}
public static FishConfig Last(Predicate<FishConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<FishConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<FishConfig> GetList()
{
return Context.GetList();
}
public static List<FishConfig> GetList(Predicate<FishConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<FishConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: eba786f9f11680b4e949810278d7212f

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 Goods : Luban.BeanBase
{
public Goods(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ var __json0 = _buf["shop"]; if(!__json0.IsArray) { throw new SerializationException(); } Shop = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Shop.Add(__v0); } }
{ if(!_buf["group"].IsNumber) { throw new SerializationException(); } Group = _buf["group"]; }
{ var __json0 = _buf["items"]; if(!__json0.IsArray) { throw new SerializationException(); } Items = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Items.Add(__v0); } }
{ if(!_buf["price1"].IsNumber) { throw new SerializationException(); } Price1 = _buf["price1"]; }
{ if(!_buf["price2"].IsNumber) { throw new SerializationException(); } Price2 = _buf["price2"]; }
{ var __json0 = _buf["label"]; if(!__json0.IsArray) { throw new SerializationException(); } Label = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Label.Add(__v0); } }
{ if(!_buf["number"].IsNumber) { throw new SerializationException(); } Number = _buf["number"]; }
{ if(!_buf["disable"].IsNumber) { throw new SerializationException(); } Disable = _buf["disable"]; }
}
public static Goods DeserializeGoods(JSONNode _buf)
{
return new Goods(_buf);
}
/// <summary>
/// Id
/// </summary>
public readonly int Id;
/// <summary>
/// 出现商店
/// </summary>
public readonly System.Collections.Generic.List<int> Shop;
/// <summary>
/// 组
/// </summary>
public readonly int Group;
/// <summary>
/// 物品
/// </summary>
public readonly System.Collections.Generic.List<int> Items;
/// <summary>
/// 银币价格
/// </summary>
public readonly int Price1;
/// <summary>
/// 金币价格
/// </summary>
public readonly int Price2;
/// <summary>
/// 标签
/// </summary>
public readonly System.Collections.Generic.List<int> Label;
/// <summary>
/// 可购买数量
/// </summary>
public readonly int Number;
/// <summary>
/// 禁用状态
/// </summary>
public readonly int Disable;
public const int __ID__ = 68986678;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "shop:" + Luban.StringUtil.CollectionToString(Shop) + ","
+ "group:" + Group + ","
+ "items:" + Luban.StringUtil.CollectionToString(Items) + ","
+ "price1:" + Price1 + ","
+ "price2:" + Price2 + ","
+ "label:" + Luban.StringUtil.CollectionToString(Label) + ","
+ "number:" + Number + ","
+ "disable:" + Disable + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 89656bcde105ba044a99d0473f3844be

View File

@@ -1,97 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class GoodsConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public uint[] Shop { get; set; } = Array.Empty<uint>(); // 出现商店
[ProtoMember(3)]
public uint Group { get; set; } // 组
[ProtoMember(4)]
public string[] Items { get; set; } = Array.Empty<string>(); // 物品
[ProtoMember(5)]
public uint Price1 { get; set; } // 银币价格
[ProtoMember(6)]
public uint Price2 { get; set; } // 金币价格
[ProtoMember(7)]
public uint[] Label { get; set; } = Array.Empty<uint>(); // 标签
[ProtoMember(8)]
public uint Number { get; set; } // 可购买数量
[ProtoMember(9)]
public uint Disable { get; set; } // 禁用状态
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<GoodsConfig> Context => ConfigTableHelper.Table<GoodsConfig>();
public static GoodsConfig Get(uint key)
{
return Context.Get(key);
}
public static GoodsConfig Get(Predicate<GoodsConfig> match)
{
return Context.Get(match);
}
public static GoodsConfig Fist()
{
return Context.Fist();
}
public static GoodsConfig Last()
{
return Context.Last();
}
public static GoodsConfig Fist(Predicate<GoodsConfig> match)
{
return Context.Fist(match);
}
public static GoodsConfig Last(Predicate<GoodsConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<GoodsConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<GoodsConfig> GetList()
{
return Context.GetList();
}
public static List<GoodsConfig> GetList(Predicate<GoodsConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<GoodsConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 1db26de84347d9f46ad4b4f07775c91e

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,2 @@
fileFormatVersion: 2
guid: aa1d91bafde4ea7459026ee5008fba60

View File

@@ -1,83 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class HookConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public uint Zadzior { get; set; } // 长钉
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<HookConfig> Context => ConfigTableHelper.Table<HookConfig>();
public static HookConfig Get(uint key)
{
return Context.Get(key);
}
public static HookConfig Get(Predicate<HookConfig> match)
{
return Context.Get(match);
}
public static HookConfig Fist()
{
return Context.Fist();
}
public static HookConfig Last()
{
return Context.Last();
}
public static HookConfig Fist(Predicate<HookConfig> match)
{
return Context.Fist(match);
}
public static HookConfig Last(Predicate<HookConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<HookConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<HookConfig> GetList()
{
return Context.GetList();
}
public static List<HookConfig> GetList(Predicate<HookConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<HookConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 641a11a91af45d74ea51fae44648611d

View File

@@ -1,83 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class InitConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public int Amount { get; set; } // 数量
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<InitConfig> Context => ConfigTableHelper.Table<InitConfig>();
public static InitConfig Get(uint key)
{
return Context.Get(key);
}
public static InitConfig Get(Predicate<InitConfig> match)
{
return Context.Get(match);
}
public static InitConfig Fist()
{
return Context.Fist();
}
public static InitConfig Last()
{
return Context.Last();
}
public static InitConfig Fist(Predicate<InitConfig> match)
{
return Context.Fist(match);
}
public static InitConfig Last(Predicate<InitConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<InitConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<InitConfig> GetList()
{
return Context.GetList();
}
public static List<InitConfig> GetList(Predicate<InitConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<InitConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 4b10beb37dfb5064593be4f13c7a4d29

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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 9ecd35ebc6e0ebe48a4ac2173a6fb668

View File

@@ -0,0 +1,108 @@
//------------------------------------------------------------------------------
// <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"]; }
{ var __json0 = _buf["result1"]; if(!__json0.IsArray) { throw new SerializationException(); } Result1 = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Result1.Add(__v0); } }
{ var __json0 = _buf["result2"]; if(!__json0.IsArray) { throw new SerializationException(); } Result2 = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Result2.Add(__v0); } }
}
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;
/// <summary>
/// 使用参数1
/// </summary>
public readonly System.Collections.Generic.List<int> Result1;
/// <summary>
/// 使用参数2
/// </summary>
public readonly System.Collections.Generic.List<string> Result2;
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 + ","
+ "result1:" + Luban.StringUtil.CollectionToString(Result1) + ","
+ "result2:" + Luban.StringUtil.CollectionToString(Result2) + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 5741fcad880a31d4b816231fb2056aa4

View File

@@ -1,97 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class ItemConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public string Model { get; set; } // 模型
[ProtoMember(3)]
public uint Type { get; set; } // 子类型
[ProtoMember(4)]
public uint Quality { get; set; } // 品质
[ProtoMember(5)]
public uint Brand { get; set; } // 品牌
[ProtoMember(6)]
public uint Weight { get; set; } // 重量(克)
[ProtoMember(7)]
public uint Length { get; set; } // 长度(毫米)
[ProtoMember(8)]
public uint Max { get; set; } // 最大堆叠数量
[ProtoMember(9)]
public uint AutoUse { get; set; } // 获得自动使用
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<ItemConfig> Context => ConfigTableHelper.Table<ItemConfig>();
public static ItemConfig Get(uint key)
{
return Context.Get(key);
}
public static ItemConfig Get(Predicate<ItemConfig> match)
{
return Context.Get(match);
}
public static ItemConfig Fist()
{
return Context.Fist();
}
public static ItemConfig Last()
{
return Context.Last();
}
public static ItemConfig Fist(Predicate<ItemConfig> match)
{
return Context.Fist(match);
}
public static ItemConfig Last(Predicate<ItemConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<ItemConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<ItemConfig> GetList()
{
return Context.GetList();
}
public static List<ItemConfig> GetList(Predicate<ItemConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<ItemConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: ab3487f65cb0c3b458c2ac0a75932642

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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: da7eaab494ed8e14eae5716fd05eb9b1

View File

@@ -1,85 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class LineConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public uint Strength { get; set; } // 强度
[ProtoMember(3)]
public uint Size { get; set; } // 尺寸
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<LineConfig> Context => ConfigTableHelper.Table<LineConfig>();
public static LineConfig Get(uint key)
{
return Context.Get(key);
}
public static LineConfig Get(Predicate<LineConfig> match)
{
return Context.Get(match);
}
public static LineConfig Fist()
{
return Context.Fist();
}
public static LineConfig Last()
{
return Context.Last();
}
public static LineConfig Fist(Predicate<LineConfig> match)
{
return Context.Fist(match);
}
public static LineConfig Last(Predicate<LineConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<LineConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<LineConfig> GetList()
{
return Context.GetList();
}
public static List<LineConfig> GetList(Predicate<LineConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<LineConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 2418acc87651b9548a804668c2e28306

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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 665d2064c6a1e1748850f3c549b6dd8e

View File

@@ -1,87 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class LureConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public uint[] Hook { get; set; } = Array.Empty<uint>(); // 勾
[ProtoMember(3)]
public uint HookNum { get; set; } // 装配鱼钩数量
[ProtoMember(4)]
public uint EfficacyBase { get; set; } // 吸引力
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<LureConfig> Context => ConfigTableHelper.Table<LureConfig>();
public static LureConfig Get(uint key)
{
return Context.Get(key);
}
public static LureConfig Get(Predicate<LureConfig> match)
{
return Context.Get(match);
}
public static LureConfig Fist()
{
return Context.Fist();
}
public static LureConfig Last()
{
return Context.Last();
}
public static LureConfig Fist(Predicate<LureConfig> match)
{
return Context.Fist(match);
}
public static LureConfig Last(Predicate<LureConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<LureConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<LureConfig> GetList()
{
return Context.GetList();
}
public static List<LureConfig> GetList(Predicate<LureConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<LureConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: ef6c35038bac3ae49aced8e616a8424b

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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 8ba596364675a364e8b3347eae5c6b59

View File

@@ -1,87 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class ReelConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public uint ReelType { get; set; } // 鱼轮类型
[ProtoMember(3)]
public float[] GearRatio { get; set; } = Array.Empty<float>(); // 组件比
[ProtoMember(4)]
public uint Strength { get; set; } // 强度
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<ReelConfig> Context => ConfigTableHelper.Table<ReelConfig>();
public static ReelConfig Get(uint key)
{
return Context.Get(key);
}
public static ReelConfig Get(Predicate<ReelConfig> match)
{
return Context.Get(match);
}
public static ReelConfig Fist()
{
return Context.Fist();
}
public static ReelConfig Last()
{
return Context.Last();
}
public static ReelConfig Fist(Predicate<ReelConfig> match)
{
return Context.Fist(match);
}
public static ReelConfig Last(Predicate<ReelConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<ReelConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<ReelConfig> GetList()
{
return Context.GetList();
}
public static List<ReelConfig> GetList(Predicate<ReelConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<ReelConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: d4057494001ca644d806866b82e454b5

View File

@@ -1,85 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class RingConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public string Model { get; set; } // 模型
[ProtoMember(3)]
public string Icon { get; set; } // 图标
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<RingConfig> Context => ConfigTableHelper.Table<RingConfig>();
public static RingConfig Get(uint key)
{
return Context.Get(key);
}
public static RingConfig Get(Predicate<RingConfig> match)
{
return Context.Get(match);
}
public static RingConfig Fist()
{
return Context.Fist();
}
public static RingConfig Last()
{
return Context.Last();
}
public static RingConfig Fist(Predicate<RingConfig> match)
{
return Context.Fist(match);
}
public static RingConfig Last(Predicate<RingConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<RingConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<RingConfig> GetList()
{
return Context.GetList();
}
public static List<RingConfig> GetList(Predicate<RingConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<RingConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: d5ab2b592498a8e4ebdd9d25d1cd28eb

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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: cab73af6ee639044eb28a752f0487da7

View File

@@ -1,91 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class RodConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public uint RodType { get; set; } // 鱼竿类型
[ProtoMember(3)]
public uint Ring { get; set; } // 导线圈
[ProtoMember(4)]
public uint Strength { get; set; } // 强度
[ProtoMember(5)]
public uint MaxRange { get; set; } // 最大范围
[ProtoMember(6)]
public uint ConstructionType { get; set; } // 结构类型
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<RodConfig> Context => ConfigTableHelper.Table<RodConfig>();
public static RodConfig Get(uint key)
{
return Context.Get(key);
}
public static RodConfig Get(Predicate<RodConfig> match)
{
return Context.Get(match);
}
public static RodConfig Fist()
{
return Context.Fist();
}
public static RodConfig Last()
{
return Context.Last();
}
public static RodConfig Fist(Predicate<RodConfig> match)
{
return Context.Fist(match);
}
public static RodConfig Last(Predicate<RodConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<RodConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<RodConfig> GetList()
{
return Context.GetList();
}
public static List<RodConfig> GetList(Predicate<RodConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<RodConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 176c5f1cc129a584386c5e3d31fdbe83

View File

@@ -1,85 +0,0 @@
using System;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using NBC;
using Fantasy.Serialize;
using LightProto;
namespace NBF
{
[ProtoContract]
public sealed partial class RodRingConfig : ASerialize, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public string Model { get; set; } // 模型
[ProtoMember(3)]
public uint Strength { get; set; } // 强度
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<RodRingConfig> Context => ConfigTableHelper.Table<RodRingConfig>();
public static RodRingConfig Get(uint key)
{
return Context.Get(key);
}
public static RodRingConfig Get(Predicate<RodRingConfig> match)
{
return Context.Get(match);
}
public static RodRingConfig Fist()
{
return Context.Fist();
}
public static RodRingConfig Last()
{
return Context.Last();
}
public static RodRingConfig Fist(Predicate<RodRingConfig> match)
{
return Context.Fist(match);
}
public static RodRingConfig Last(Predicate<RodRingConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<RodRingConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<RodRingConfig> GetList()
{
return Context.GetList();
}
public static List<RodRingConfig> GetList(Predicate<RodRingConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<RodRingConfig>(arr);
}
#endregion
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: e47768c4795d2d142a071bcc4edc6767

View File

@@ -0,0 +1,106 @@
//------------------------------------------------------------------------------
// <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 TbGoods TbGoods {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"));
TbGoods = new TbGoods(loader("tbgoods"));
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);
TbGoods.ResolveRef(this);
TbHook.ResolveRef(this);
TbInitItemConfig.ResolveRef(this);
TbItem.ResolveRef(this);
TbLine.ResolveRef(this);
TbLure.ResolveRef(this);
TbReel.ResolveRef(this);
TbRod.ResolveRef(this);
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: aaa42e867120fdb4da8e2c3e32b5ab8b

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,2 @@
fileFormatVersion: 2
guid: 86d1a9dcb16571b4ea602dff971ec289

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);
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 579bd31788c0cdf418178ef5d9602a5e

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);
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 10452cedc6a008048a4cf4171a7c8cde

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);
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 26a8d1845e57d3e498e83cbf510d3dfb

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);
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: b47f607d75f08474198ba45c15396e6f

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

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 5f2a5a8b9616e5c45af7c71c4e29ff7a

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,2 @@
fileFormatVersion: 2
guid: 48f0796fd23250344af4a4148fdcb639

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);
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 1303720658989b44f8c132c8ecad7f4f

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);
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: e22095046d3f0b047be6a18494cf33f7

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);
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 624280ecbcb67c04287f9448ab9fa734

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);
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 589aa9570b9a4cc4eb939ffa9ff99b04

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);
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 29d3d3112aed34344a4a53bc4f3b1187

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);
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 19ec930ffdc17604ab0a8312f46c55bf

Some files were not shown because too many files have changed in this diff Show More