首次提交
This commit is contained in:
8
Assets/Scripts/Generate/Config.meta
Normal file
8
Assets/Scripts/Generate/Config.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 13431063251342f40a7e27cd403bf79b
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
66
Assets/Scripts/Generate/Config/Bait.cs
Normal file
66
Assets/Scripts/Generate/Config/Bait.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/Bait.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Bait.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f3c09d4c91a82d041b77d6e81ffe6607
|
||||
69
Assets/Scripts/Generate/Config/BasicConfig.cs
Normal file
69
Assets/Scripts/Generate/Config/BasicConfig.cs
Normal 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) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/BasicConfig.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/BasicConfig.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5c900c2cd8da41740a01b749b9c8d844
|
||||
60
Assets/Scripts/Generate/Config/Bobber.cs
Normal file
60
Assets/Scripts/Generate/Config/Bobber.cs
Normal 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) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/Bobber.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Bobber.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d902af8c14def8b43bf74c964bdc8c3e
|
||||
60
Assets/Scripts/Generate/Config/Feeder.cs
Normal file
60
Assets/Scripts/Generate/Config/Feeder.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/Feeder.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Feeder.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f8ebf5ccf9b5e8e4ba1e7af22fa9fe5f
|
||||
78
Assets/Scripts/Generate/Config/Fish.cs
Normal file
78
Assets/Scripts/Generate/Config/Fish.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/Fish.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Fish.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7aaac9ec1a5f258459f4e0a738a52707
|
||||
96
Assets/Scripts/Generate/Config/Goods.cs
Normal file
96
Assets/Scripts/Generate/Config/Goods.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/Goods.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Goods.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 89656bcde105ba044a99d0473f3844be
|
||||
54
Assets/Scripts/Generate/Config/Hook.cs
Normal file
54
Assets/Scripts/Generate/Config/Hook.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/Hook.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Hook.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aa1d91bafde4ea7459026ee5008fba60
|
||||
54
Assets/Scripts/Generate/Config/InitItemConfig.cs
Normal file
54
Assets/Scripts/Generate/Config/InitItemConfig.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/InitItemConfig.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/InitItemConfig.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9ecd35ebc6e0ebe48a4ac2173a6fb668
|
||||
108
Assets/Scripts/Generate/Config/Item.cs
Normal file
108
Assets/Scripts/Generate/Config/Item.cs
Normal 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) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/Item.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Item.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5741fcad880a31d4b816231fb2056aa4
|
||||
60
Assets/Scripts/Generate/Config/Line.cs
Normal file
60
Assets/Scripts/Generate/Config/Line.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/Line.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Line.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: da7eaab494ed8e14eae5716fd05eb9b1
|
||||
66
Assets/Scripts/Generate/Config/Lure.cs
Normal file
66
Assets/Scripts/Generate/Config/Lure.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/Lure.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Lure.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 665d2064c6a1e1748850f3c549b6dd8e
|
||||
66
Assets/Scripts/Generate/Config/Reel.cs
Normal file
66
Assets/Scripts/Generate/Config/Reel.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/Reel.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Reel.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ba596364675a364e8b3347eae5c6b59
|
||||
78
Assets/Scripts/Generate/Config/Rod.cs
Normal file
78
Assets/Scripts/Generate/Config/Rod.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/Rod.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Rod.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cab73af6ee639044eb28a752f0487da7
|
||||
106
Assets/Scripts/Generate/Config/Tables.cs
Normal file
106
Assets/Scripts/Generate/Config/Tables.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
2
Assets/Scripts/Generate/Config/Tables.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/Tables.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aaa42e867120fdb4da8e2c3e32b5ab8b
|
||||
57
Assets/Scripts/Generate/Config/TbBait.cs
Normal file
57
Assets/Scripts/Generate/Config/TbBait.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbBait.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbBait.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 86d1a9dcb16571b4ea602dff971ec289
|
||||
57
Assets/Scripts/Generate/Config/TbBasicConfig.cs
Normal file
57
Assets/Scripts/Generate/Config/TbBasicConfig.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbBasicConfig.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbBasicConfig.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 579bd31788c0cdf418178ef5d9602a5e
|
||||
57
Assets/Scripts/Generate/Config/TbBobber.cs
Normal file
57
Assets/Scripts/Generate/Config/TbBobber.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbBobber.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbBobber.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 10452cedc6a008048a4cf4171a7c8cde
|
||||
57
Assets/Scripts/Generate/Config/TbFeeder.cs
Normal file
57
Assets/Scripts/Generate/Config/TbFeeder.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbFeeder.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbFeeder.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 26a8d1845e57d3e498e83cbf510d3dfb
|
||||
57
Assets/Scripts/Generate/Config/TbFish.cs
Normal file
57
Assets/Scripts/Generate/Config/TbFish.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbFish.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbFish.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b47f607d75f08474198ba45c15396e6f
|
||||
57
Assets/Scripts/Generate/Config/TbGoods.cs
Normal file
57
Assets/Scripts/Generate/Config/TbGoods.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbGoods.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbGoods.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f2a5a8b9616e5c45af7c71c4e29ff7a
|
||||
57
Assets/Scripts/Generate/Config/TbHook.cs
Normal file
57
Assets/Scripts/Generate/Config/TbHook.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbHook.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbHook.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 48f0796fd23250344af4a4148fdcb639
|
||||
57
Assets/Scripts/Generate/Config/TbInitItemConfig.cs
Normal file
57
Assets/Scripts/Generate/Config/TbInitItemConfig.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbInitItemConfig.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbInitItemConfig.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1303720658989b44f8c132c8ecad7f4f
|
||||
57
Assets/Scripts/Generate/Config/TbItem.cs
Normal file
57
Assets/Scripts/Generate/Config/TbItem.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbItem.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbItem.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e22095046d3f0b047be6a18494cf33f7
|
||||
57
Assets/Scripts/Generate/Config/TbLine.cs
Normal file
57
Assets/Scripts/Generate/Config/TbLine.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbLine.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbLine.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 624280ecbcb67c04287f9448ab9fa734
|
||||
57
Assets/Scripts/Generate/Config/TbLure.cs
Normal file
57
Assets/Scripts/Generate/Config/TbLure.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbLure.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbLure.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 589aa9570b9a4cc4eb939ffa9ff99b04
|
||||
57
Assets/Scripts/Generate/Config/TbReel.cs
Normal file
57
Assets/Scripts/Generate/Config/TbReel.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbReel.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbReel.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29d3d3112aed34344a4a53bc4f3b1187
|
||||
57
Assets/Scripts/Generate/Config/TbRod.cs
Normal file
57
Assets/Scripts/Generate/Config/TbRod.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/TbRod.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/TbRod.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 19ec930ffdc17604ab0a8312f46c55bf
|
||||
46
Assets/Scripts/Generate/Config/vector2.cs
Normal file
46
Assets/Scripts/Generate/Config/vector2.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/vector2.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/vector2.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ef52963b03d0fef46b9391c611c321c3
|
||||
49
Assets/Scripts/Generate/Config/vector3.cs
Normal file
49
Assets/Scripts/Generate/Config/vector3.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/vector3.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/vector3.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1b0a4d7b1b3269f48a7e0add5ebfd027
|
||||
52
Assets/Scripts/Generate/Config/vector4.cs
Normal file
52
Assets/Scripts/Generate/Config/vector4.cs
Normal 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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
Assets/Scripts/Generate/Config/vector4.cs.meta
Normal file
2
Assets/Scripts/Generate/Config/vector4.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 418ad2012f4fa6841811d9a23621bea1
|
||||
8
Assets/Scripts/Generate/NetworkProtocol.meta
Normal file
8
Assets/Scripts/Generate/NetworkProtocol.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 28af371d580930a4682dfc9be6deec1d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
659
Assets/Scripts/Generate/NetworkProtocol/NetworkProtocolHelper.cs
Normal file
659
Assets/Scripts/Generate/NetworkProtocol/NetworkProtocolHelper.cs
Normal file
@@ -0,0 +1,659 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using Fantasy;
|
||||
using Fantasy.Async;
|
||||
using Fantasy.Network;
|
||||
using System.Collections.Generic;
|
||||
#pragma warning disable CS8618
|
||||
namespace Fantasy
|
||||
{
|
||||
public static class NetworkProtocolHelper
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GetItemsResponse> C2Game_GetItemsRequest(this Session session, C2Game_GetItemsRequest C2Game_GetItemsRequest_request)
|
||||
{
|
||||
return (Game2C_GetItemsResponse)await session.Call(C2Game_GetItemsRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GetItemsResponse> C2Game_GetItemsRequest(this Session session)
|
||||
{
|
||||
using var C2Game_GetItemsRequest_request = Fantasy.C2Game_GetItemsRequest.Create();
|
||||
return (Game2C_GetItemsResponse)await session.Call(C2Game_GetItemsRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_UseItemResponse> C2Game_UseItemRequest(this Session session, C2Game_UseItemRequest C2Game_UseItemRequest_request)
|
||||
{
|
||||
return (Game2C_UseItemResponse)await session.Call(C2Game_UseItemRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_UseItemResponse> C2Game_UseItemRequest(this Session session, long itemId)
|
||||
{
|
||||
using var C2Game_UseItemRequest_request = Fantasy.C2Game_UseItemRequest.Create();
|
||||
C2Game_UseItemRequest_request.ItemId = itemId;
|
||||
return (Game2C_UseItemResponse)await session.Call(C2Game_UseItemRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Game2C_ItemChange(this Session session, Game2C_ItemChange Game2C_ItemChange_message)
|
||||
{
|
||||
session.Send(Game2C_ItemChange_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Game2C_ItemChange(this Session session, int type, List<ItemInfo> items, List<long> removes)
|
||||
{
|
||||
using var Game2C_ItemChange_message = Fantasy.Game2C_ItemChange.Create();
|
||||
Game2C_ItemChange_message.Type = type;
|
||||
Game2C_ItemChange_message.Items = items;
|
||||
Game2C_ItemChange_message.Removes = removes;
|
||||
session.Send(Game2C_ItemChange_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_RigChangeResponse> C2Game_RigChangeRequest(this Session session, C2Game_RigChangeRequest C2Game_RigChangeRequest_request)
|
||||
{
|
||||
return (Game2C_RigChangeResponse)await session.Call(C2Game_RigChangeRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_RigChangeResponse> C2Game_RigChangeRequest(this Session session, long itemId, long rigId, long oldRigId, bool isAdd)
|
||||
{
|
||||
using var C2Game_RigChangeRequest_request = Fantasy.C2Game_RigChangeRequest.Create();
|
||||
C2Game_RigChangeRequest_request.ItemId = itemId;
|
||||
C2Game_RigChangeRequest_request.RigId = rigId;
|
||||
C2Game_RigChangeRequest_request.OldRigId = oldRigId;
|
||||
C2Game_RigChangeRequest_request.IsAdd = isAdd;
|
||||
return (Game2C_RigChangeResponse)await session.Call(C2Game_RigChangeRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_SetSlotResponse> C2Game_SetSlotRequest(this Session session, C2Game_SetSlotRequest C2Game_SetSlotRequest_request)
|
||||
{
|
||||
return (Game2C_SetSlotResponse)await session.Call(C2Game_SetSlotRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_SetSlotResponse> C2Game_SetSlotRequest(this Session session, int index, long id)
|
||||
{
|
||||
using var C2Game_SetSlotRequest_request = Fantasy.C2Game_SetSlotRequest.Create();
|
||||
C2Game_SetSlotRequest_request.Index = index;
|
||||
C2Game_SetSlotRequest_request.Id = id;
|
||||
return (Game2C_SetSlotResponse)await session.Call(C2Game_SetSlotRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GetFishsResponse> C2Game_GetFishsRequest(this Session session, C2Game_GetFishsRequest C2Game_GetFishsRequest_request)
|
||||
{
|
||||
return (Game2C_GetFishsResponse)await session.Call(C2Game_GetFishsRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GetFishsResponse> C2Game_GetFishsRequest(this Session session)
|
||||
{
|
||||
using var C2Game_GetFishsRequest_request = Fantasy.C2Game_GetFishsRequest.Create();
|
||||
return (Game2C_GetFishsResponse)await session.Call(C2Game_GetFishsRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Game2C_FishChange(this Session session, Game2C_FishChange Game2C_FishChange_message)
|
||||
{
|
||||
session.Send(Game2C_FishChange_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Game2C_FishChange(this Session session, int type, List<FishInfo> fishs, List<long> removes)
|
||||
{
|
||||
using var Game2C_FishChange_message = Fantasy.Game2C_FishChange.Create();
|
||||
Game2C_FishChange_message.Type = type;
|
||||
Game2C_FishChange_message.Fishs = fishs;
|
||||
Game2C_FishChange_message.Removes = removes;
|
||||
session.Send(Game2C_FishChange_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_SellFishResponse> C2Game_SellFishRequest(this Session session, C2Game_SellFishRequest C2Game_SellFishRequest_request)
|
||||
{
|
||||
return (Game2C_SellFishResponse)await session.Call(C2Game_SellFishRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_SellFishResponse> C2Game_SellFishRequest(this Session session, List<long> ids)
|
||||
{
|
||||
using var C2Game_SellFishRequest_request = Fantasy.C2Game_SellFishRequest.Create();
|
||||
C2Game_SellFishRequest_request.Ids = ids;
|
||||
return (Game2C_SellFishResponse)await session.Call(C2Game_SellFishRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GetShopItemsResponse> C2Game_GetShopItemsRequest(this Session session, C2Game_GetShopItemsRequest C2Game_GetShopItemsRequest_request)
|
||||
{
|
||||
return (Game2C_GetShopItemsResponse)await session.Call(C2Game_GetShopItemsRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GetShopItemsResponse> C2Game_GetShopItemsRequest(this Session session, uint shop)
|
||||
{
|
||||
using var C2Game_GetShopItemsRequest_request = Fantasy.C2Game_GetShopItemsRequest.Create();
|
||||
C2Game_GetShopItemsRequest_request.Shop = shop;
|
||||
return (Game2C_GetShopItemsResponse)await session.Call(C2Game_GetShopItemsRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GetFishsResponse> C2Game_BuyRequest(this Session session, C2Game_BuyRequest C2Game_BuyRequest_request)
|
||||
{
|
||||
return (Game2C_GetFishsResponse)await session.Call(C2Game_BuyRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GetFishsResponse> C2Game_BuyRequest(this Session session, uint buyId)
|
||||
{
|
||||
using var C2Game_BuyRequest_request = Fantasy.C2Game_BuyRequest.Create();
|
||||
C2Game_BuyRequest_request.BuyId = buyId;
|
||||
return (Game2C_GetFishsResponse)await session.Call(C2Game_BuyRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Game2C_RewardNotify(this Session session, Game2C_RewardNotify Game2C_RewardNotify_message)
|
||||
{
|
||||
session.Send(Game2C_RewardNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Game2C_RewardNotify(this Session session, List<AwardInfo> awards)
|
||||
{
|
||||
using var Game2C_RewardNotify_message = Fantasy.Game2C_RewardNotify.Create();
|
||||
Game2C_RewardNotify_message.Awards = awards;
|
||||
session.Send(Game2C_RewardNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GMResponse> C2Game_GMRequest(this Session session, C2Game_GMRequest C2Game_GMRequest_request)
|
||||
{
|
||||
return (Game2C_GMResponse)await session.Call(C2Game_GMRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GMResponse> C2Game_GMRequest(this Session session, string cmd, string args)
|
||||
{
|
||||
using var C2Game_GMRequest_request = Fantasy.C2Game_GMRequest.Create();
|
||||
C2Game_GMRequest_request.Cmd = cmd;
|
||||
C2Game_GMRequest_request.Args = args;
|
||||
return (Game2C_GMResponse)await session.Call(C2Game_GMRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Map2C_CreateRoomResponse> C2Map_CreateRoomRequest(this Session session, C2Map_CreateRoomRequest C2Map_CreateRoomRequest_request)
|
||||
{
|
||||
return (Map2C_CreateRoomResponse)await session.Call(C2Map_CreateRoomRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Map2C_CreateRoomResponse> C2Map_CreateRoomRequest(this Session session, int mapId)
|
||||
{
|
||||
using var C2Map_CreateRoomRequest_request = Fantasy.C2Map_CreateRoomRequest.Create();
|
||||
C2Map_CreateRoomRequest_request.MapId = mapId;
|
||||
return (Map2C_CreateRoomResponse)await session.Call(C2Map_CreateRoomRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<G2C_ExitRoomResponse> C2G_ExitRoomRequest(this Session session, C2G_ExitRoomRequest C2G_ExitRoomRequest_request)
|
||||
{
|
||||
return (G2C_ExitRoomResponse)await session.Call(C2G_ExitRoomRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<G2C_ExitRoomResponse> C2G_ExitRoomRequest(this Session session, string roomCode)
|
||||
{
|
||||
using var C2G_ExitRoomRequest_request = Fantasy.C2G_ExitRoomRequest.Create();
|
||||
C2G_ExitRoomRequest_request.RoomCode = roomCode;
|
||||
return (G2C_ExitRoomResponse)await session.Call(C2G_ExitRoomRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<G2C_EnterMapResponse> C2G_EnterMapRequest(this Session session, C2G_EnterMapRequest C2G_EnterMapRequest_request)
|
||||
{
|
||||
return (G2C_EnterMapResponse)await session.Call(C2G_EnterMapRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<G2C_EnterMapResponse> C2G_EnterMapRequest(this Session session, string roomCode, int mapId)
|
||||
{
|
||||
using var C2G_EnterMapRequest_request = Fantasy.C2G_EnterMapRequest.Create();
|
||||
C2G_EnterMapRequest_request.RoomCode = roomCode;
|
||||
C2G_EnterMapRequest_request.MapId = mapId;
|
||||
return (G2C_EnterMapResponse)await session.Call(C2G_EnterMapRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_ChangeMap(this Session session, Map2C_ChangeMap Map2C_ChangeMap_message)
|
||||
{
|
||||
session.Send(Map2C_ChangeMap_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_ChangeMap(this Session session, int mapId, int node)
|
||||
{
|
||||
using var Map2C_ChangeMap_message = Fantasy.Map2C_ChangeMap.Create();
|
||||
Map2C_ChangeMap_message.MapId = mapId;
|
||||
Map2C_ChangeMap_message.Node = node;
|
||||
session.Send(Map2C_ChangeMap_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<A2C_LoginResponse> C2A_LoginRequest(this Session session, C2A_LoginRequest C2A_LoginRequest_request)
|
||||
{
|
||||
return (A2C_LoginResponse)await session.Call(C2A_LoginRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<A2C_LoginResponse> C2A_LoginRequest(this Session session, string username, string password, int loginType, int region)
|
||||
{
|
||||
using var C2A_LoginRequest_request = Fantasy.C2A_LoginRequest.Create();
|
||||
C2A_LoginRequest_request.Username = username;
|
||||
C2A_LoginRequest_request.Password = password;
|
||||
C2A_LoginRequest_request.LoginType = loginType;
|
||||
C2A_LoginRequest_request.Region = region;
|
||||
return (A2C_LoginResponse)await session.Call(C2A_LoginRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<G2C_LoginResponse> C2G_LoginRequest(this Session session, C2G_LoginRequest C2G_LoginRequest_request)
|
||||
{
|
||||
return (G2C_LoginResponse)await session.Call(C2G_LoginRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<G2C_LoginResponse> C2G_LoginRequest(this Session session, string toKen)
|
||||
{
|
||||
using var C2G_LoginRequest_request = Fantasy.C2G_LoginRequest.Create();
|
||||
C2G_LoginRequest_request.ToKen = toKen;
|
||||
return (G2C_LoginResponse)await session.Call(C2G_LoginRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void G2C_RepeatLogin(this Session session, G2C_RepeatLogin G2C_RepeatLogin_message)
|
||||
{
|
||||
session.Send(G2C_RepeatLogin_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void G2C_RepeatLogin(this Session session)
|
||||
{
|
||||
using var message = Fantasy.G2C_RepeatLogin.Create();
|
||||
session.Send(message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GetRoleInfoResponse> C2Game_GetRoleInfoRequest(this Session session, C2Game_GetRoleInfoRequest C2Game_GetRoleInfoRequest_request)
|
||||
{
|
||||
return (Game2C_GetRoleInfoResponse)await session.Call(C2Game_GetRoleInfoRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Game2C_GetRoleInfoResponse> C2Game_GetRoleInfoRequest(this Session session)
|
||||
{
|
||||
using var C2Game_GetRoleInfoRequest_request = Fantasy.C2Game_GetRoleInfoRequest.Create();
|
||||
return (Game2C_GetRoleInfoResponse)await session.Call(C2Game_GetRoleInfoRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_RoleEnterRoomNotify(this Session session, Map2C_RoleEnterRoomNotify Map2C_RoleEnterRoomNotify_message)
|
||||
{
|
||||
session.Send(Map2C_RoleEnterRoomNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_RoleEnterRoomNotify(this Session session, MapUnitInfo info)
|
||||
{
|
||||
using var Map2C_RoleEnterRoomNotify_message = Fantasy.Map2C_RoleEnterRoomNotify.Create();
|
||||
Map2C_RoleEnterRoomNotify_message.Info = info;
|
||||
session.Send(Map2C_RoleEnterRoomNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_RoleExitRoomNotify(this Session session, Map2C_RoleExitRoomNotify Map2C_RoleExitRoomNotify_message)
|
||||
{
|
||||
session.Send(Map2C_RoleExitRoomNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_RoleExitRoomNotify(this Session session, long id)
|
||||
{
|
||||
using var Map2C_RoleExitRoomNotify_message = Fantasy.Map2C_RoleExitRoomNotify.Create();
|
||||
Map2C_RoleExitRoomNotify_message.Id = id;
|
||||
session.Send(Map2C_RoleExitRoomNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Map2C_TakeItemResponse> C2Map_TakeItemRequest(this Session session, C2Map_TakeItemRequest C2Map_TakeItemRequest_request)
|
||||
{
|
||||
return (Map2C_TakeItemResponse)await session.Call(C2Map_TakeItemRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Map2C_TakeItemResponse> C2Map_TakeItemRequest(this Session session, int id, bool task)
|
||||
{
|
||||
using var C2Map_TakeItemRequest_request = Fantasy.C2Map_TakeItemRequest.Create();
|
||||
C2Map_TakeItemRequest_request.Id = id;
|
||||
C2Map_TakeItemRequest_request.Task = task;
|
||||
return (Map2C_TakeItemResponse)await session.Call(C2Map_TakeItemRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void C2Map_RolePropertyChange(this Session session, C2Map_RolePropertyChange C2Map_RolePropertyChange_message)
|
||||
{
|
||||
session.Send(C2Map_RolePropertyChange_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void C2Map_RolePropertyChange(this Session session, List<KeyValueInt64> propertys)
|
||||
{
|
||||
using var C2Map_RolePropertyChange_message = Fantasy.C2Map_RolePropertyChange.Create();
|
||||
C2Map_RolePropertyChange_message.Propertys = propertys;
|
||||
session.Send(C2Map_RolePropertyChange_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_RoleStateNotify(this Session session, Map2C_RoleStateNotify Map2C_RoleStateNotify_message)
|
||||
{
|
||||
session.Send(Map2C_RoleStateNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_RoleStateNotify(this Session session, long id, UnitStateInfo state)
|
||||
{
|
||||
using var Map2C_RoleStateNotify_message = Fantasy.Map2C_RoleStateNotify.Create();
|
||||
Map2C_RoleStateNotify_message.Id = id;
|
||||
Map2C_RoleStateNotify_message.State = state;
|
||||
session.Send(Map2C_RoleStateNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_RoleGearChangeNotify(this Session session, Map2C_RoleGearChangeNotify Map2C_RoleGearChangeNotify_message)
|
||||
{
|
||||
session.Send(Map2C_RoleGearChangeNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_RoleGearChangeNotify(this Session session, long id, List<GearInfo> gears)
|
||||
{
|
||||
using var Map2C_RoleGearChangeNotify_message = Fantasy.Map2C_RoleGearChangeNotify.Create();
|
||||
Map2C_RoleGearChangeNotify_message.Id = id;
|
||||
Map2C_RoleGearChangeNotify_message.Gears = gears;
|
||||
session.Send(Map2C_RoleGearChangeNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_RolePropertyChangeNotify(this Session session, Map2C_RolePropertyChangeNotify Map2C_RolePropertyChangeNotify_message)
|
||||
{
|
||||
session.Send(Map2C_RolePropertyChangeNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_RolePropertyChangeNotify(this Session session, long id, List<KeyValueInt64> propertys)
|
||||
{
|
||||
using var Map2C_RolePropertyChangeNotify_message = Fantasy.Map2C_RolePropertyChangeNotify.Create();
|
||||
Map2C_RolePropertyChangeNotify_message.Id = id;
|
||||
Map2C_RolePropertyChangeNotify_message.Propertys = propertys;
|
||||
session.Send(Map2C_RolePropertyChangeNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void C2Map_Move(this Session session, C2Map_Move C2Map_Move_message)
|
||||
{
|
||||
session.Send(C2Map_Move_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void C2Map_Move(this Session session, Vector3Info position, Vector3Info rotation, Vector3Info direction, bool isStop, bool isRun, long timestamp)
|
||||
{
|
||||
using var C2Map_Move_message = Fantasy.C2Map_Move.Create();
|
||||
C2Map_Move_message.Position = position;
|
||||
C2Map_Move_message.Rotation = rotation;
|
||||
C2Map_Move_message.Direction = direction;
|
||||
C2Map_Move_message.IsStop = isStop;
|
||||
C2Map_Move_message.IsRun = isRun;
|
||||
C2Map_Move_message.Timestamp = timestamp;
|
||||
session.Send(C2Map_Move_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void C2Map_Look(this Session session, C2Map_Look C2Map_Look_message)
|
||||
{
|
||||
session.Send(C2Map_Look_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void C2Map_Look(this Session session, Vector3Info rotation, long timestamp)
|
||||
{
|
||||
using var C2Map_Look_message = Fantasy.C2Map_Look.Create();
|
||||
C2Map_Look_message.Rotation = rotation;
|
||||
C2Map_Look_message.Timestamp = timestamp;
|
||||
session.Send(C2Map_Look_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_MoveNotify(this Session session, Map2C_MoveNotify Map2C_MoveNotify_message)
|
||||
{
|
||||
session.Send(Map2C_MoveNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_MoveNotify(this Session session, long id, Vector3Info position, Vector3Info rotation, Vector3Info direction, bool isStop, bool isRun, long timestamp)
|
||||
{
|
||||
using var Map2C_MoveNotify_message = Fantasy.Map2C_MoveNotify.Create();
|
||||
Map2C_MoveNotify_message.Id = id;
|
||||
Map2C_MoveNotify_message.Position = position;
|
||||
Map2C_MoveNotify_message.Rotation = rotation;
|
||||
Map2C_MoveNotify_message.Direction = direction;
|
||||
Map2C_MoveNotify_message.IsStop = isStop;
|
||||
Map2C_MoveNotify_message.IsRun = isRun;
|
||||
Map2C_MoveNotify_message.Timestamp = timestamp;
|
||||
session.Send(Map2C_MoveNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_LookeNotify(this Session session, Map2C_LookeNotify Map2C_LookeNotify_message)
|
||||
{
|
||||
session.Send(Map2C_LookeNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Map2C_LookeNotify(this Session session, long id, Vector3Info rotation, long timestamp)
|
||||
{
|
||||
using var Map2C_LookeNotify_message = Fantasy.Map2C_LookeNotify.Create();
|
||||
Map2C_LookeNotify_message.Id = id;
|
||||
Map2C_LookeNotify_message.Rotation = rotation;
|
||||
Map2C_LookeNotify_message.Timestamp = timestamp;
|
||||
session.Send(Map2C_LookeNotify_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_GetConversationsResponse> C2S_GetConversationsRequest(this Session session, C2S_GetConversationsRequest C2S_GetConversationsRequest_request)
|
||||
{
|
||||
return (S2C_GetConversationsResponse)await session.Call(C2S_GetConversationsRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_GetConversationsResponse> C2S_GetConversationsRequest(this Session session)
|
||||
{
|
||||
using var C2S_GetConversationsRequest_request = Fantasy.C2S_GetConversationsRequest.Create();
|
||||
return (S2C_GetConversationsResponse)await session.Call(C2S_GetConversationsRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_SendMailResponse> C2S_SendMailRequest(this Session session, C2S_SendMailRequest C2S_SendMailRequest_request)
|
||||
{
|
||||
return (S2C_SendMailResponse)await session.Call(C2S_SendMailRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_SendMailResponse> C2S_SendMailRequest(this Session session, long target, string content, List<AwardInfo> items)
|
||||
{
|
||||
using var C2S_SendMailRequest_request = Fantasy.C2S_SendMailRequest.Create();
|
||||
C2S_SendMailRequest_request.Target = target;
|
||||
C2S_SendMailRequest_request.Content = content;
|
||||
C2S_SendMailRequest_request.Items = items;
|
||||
return (S2C_SendMailResponse)await session.Call(C2S_SendMailRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_DeleteMailResponse> C2S_DeleteMailRequest(this Session session, C2S_DeleteMailRequest C2S_DeleteMailRequest_request)
|
||||
{
|
||||
return (S2C_DeleteMailResponse)await session.Call(C2S_DeleteMailRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_DeleteMailResponse> C2S_DeleteMailRequest(this Session session, long id)
|
||||
{
|
||||
using var C2S_DeleteMailRequest_request = Fantasy.C2S_DeleteMailRequest.Create();
|
||||
C2S_DeleteMailRequest_request.Id = id;
|
||||
return (S2C_DeleteMailResponse)await session.Call(C2S_DeleteMailRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void S2C_HaveMail(this Session session, S2C_HaveMail S2C_HaveMail_message)
|
||||
{
|
||||
session.Send(S2C_HaveMail_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void S2C_HaveMail(this Session session, MailInfo mail, string key)
|
||||
{
|
||||
using var S2C_HaveMail_message = Fantasy.S2C_HaveMail.Create();
|
||||
S2C_HaveMail_message.Mail = mail;
|
||||
S2C_HaveMail_message.Key = key;
|
||||
session.Send(S2C_HaveMail_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void S2C_MailState(this Session session, S2C_MailState S2C_MailState_message)
|
||||
{
|
||||
session.Send(S2C_MailState_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void S2C_MailState(this Session session, int mailState, long mailId)
|
||||
{
|
||||
using var S2C_MailState_message = Fantasy.S2C_MailState.Create();
|
||||
S2C_MailState_message.MailState = mailState;
|
||||
S2C_MailState_message.MailId = mailId;
|
||||
session.Send(S2C_MailState_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Chat2C_SendMessageResponse> C2Chat_SendMessageRequest(this Session session, C2Chat_SendMessageRequest C2Chat_SendMessageRequest_request)
|
||||
{
|
||||
return (Chat2C_SendMessageResponse)await session.Call(C2Chat_SendMessageRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<Chat2C_SendMessageResponse> C2Chat_SendMessageRequest(this Session session, ChatInfoTree chatInfoTree)
|
||||
{
|
||||
using var C2Chat_SendMessageRequest_request = Fantasy.C2Chat_SendMessageRequest.Create();
|
||||
C2Chat_SendMessageRequest_request.ChatInfoTree = chatInfoTree;
|
||||
return (Chat2C_SendMessageResponse)await session.Call(C2Chat_SendMessageRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Chat2C_Message(this Session session, Chat2C_Message Chat2C_Message_message)
|
||||
{
|
||||
session.Send(Chat2C_Message_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Chat2C_Message(this Session session, ChatInfoTree chatInfoTree)
|
||||
{
|
||||
using var Chat2C_Message_message = Fantasy.Chat2C_Message.Create();
|
||||
Chat2C_Message_message.ChatInfoTree = chatInfoTree;
|
||||
session.Send(Chat2C_Message_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_CreateChannelResponse> C2S_CreateChannelRequest(this Session session, C2S_CreateChannelRequest C2S_CreateChannelRequest_request)
|
||||
{
|
||||
return (S2C_CreateChannelResponse)await session.Call(C2S_CreateChannelRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_CreateChannelResponse> C2S_CreateChannelRequest(this Session session, string name)
|
||||
{
|
||||
using var C2S_CreateChannelRequest_request = Fantasy.C2S_CreateChannelRequest.Create();
|
||||
C2S_CreateChannelRequest_request.Name = name;
|
||||
return (S2C_CreateChannelResponse)await session.Call(C2S_CreateChannelRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_JoinChannelResponse> C2S_JoinChannelRequest(this Session session, C2S_JoinChannelRequest C2S_JoinChannelRequest_request)
|
||||
{
|
||||
return (S2C_JoinChannelResponse)await session.Call(C2S_JoinChannelRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_JoinChannelResponse> C2S_JoinChannelRequest(this Session session, long target)
|
||||
{
|
||||
using var C2S_JoinChannelRequest_request = Fantasy.C2S_JoinChannelRequest.Create();
|
||||
C2S_JoinChannelRequest_request.Target = target;
|
||||
return (S2C_JoinChannelResponse)await session.Call(C2S_JoinChannelRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_SendMessageResponse> C2S_SendMessageRequest(this Session session, C2S_SendMessageRequest C2S_SendMessageRequest_request)
|
||||
{
|
||||
return (S2C_SendMessageResponse)await session.Call(C2S_SendMessageRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_SendMessageResponse> C2S_SendMessageRequest(this Session session, string message, long target)
|
||||
{
|
||||
using var C2S_SendMessageRequest_request = Fantasy.C2S_SendMessageRequest.Create();
|
||||
C2S_SendMessageRequest_request.Message = message;
|
||||
C2S_SendMessageRequest_request.Target = target;
|
||||
return (S2C_SendMessageResponse)await session.Call(C2S_SendMessageRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void S2C_Message(this Session session, S2C_Message S2C_Message_message)
|
||||
{
|
||||
session.Send(S2C_Message_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void S2C_Message(this Session session, ChatMessageInfo msg)
|
||||
{
|
||||
using var S2C_Message_message = Fantasy.S2C_Message.Create();
|
||||
S2C_Message_message.Msg = msg;
|
||||
session.Send(S2C_Message_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_CreateClubResponse> C2S_CreateClubRequest(this Session session, C2S_CreateClubRequest C2S_CreateClubRequest_request)
|
||||
{
|
||||
return (S2C_CreateClubResponse)await session.Call(C2S_CreateClubRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_CreateClubResponse> C2S_CreateClubRequest(this Session session, string name)
|
||||
{
|
||||
using var C2S_CreateClubRequest_request = Fantasy.C2S_CreateClubRequest.Create();
|
||||
C2S_CreateClubRequest_request.Name = name;
|
||||
return (S2C_CreateClubResponse)await session.Call(C2S_CreateClubRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_GetClubInfoResponse> C2S_GetClubInfoRequest(this Session session, C2S_GetClubInfoRequest C2S_GetClubInfoRequest_request)
|
||||
{
|
||||
return (S2C_GetClubInfoResponse)await session.Call(C2S_GetClubInfoRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_GetClubInfoResponse> C2S_GetClubInfoRequest(this Session session, long clubId)
|
||||
{
|
||||
using var C2S_GetClubInfoRequest_request = Fantasy.C2S_GetClubInfoRequest.Create();
|
||||
C2S_GetClubInfoRequest_request.ClubId = clubId;
|
||||
return (S2C_GetClubInfoResponse)await session.Call(C2S_GetClubInfoRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_GetMemberListResponse> C2S_GetMemberListRequest(this Session session, C2S_GetMemberListRequest C2S_GetMemberListRequest_request)
|
||||
{
|
||||
return (S2C_GetMemberListResponse)await session.Call(C2S_GetMemberListRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_GetMemberListResponse> C2S_GetMemberListRequest(this Session session, long clubId)
|
||||
{
|
||||
using var C2S_GetMemberListRequest_request = Fantasy.C2S_GetMemberListRequest.Create();
|
||||
C2S_GetMemberListRequest_request.ClubId = clubId;
|
||||
return (S2C_GetMemberListResponse)await session.Call(C2S_GetMemberListRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_GetClubListResponse> C2S_GetClubListRequest(this Session session, C2S_GetClubListRequest C2S_GetClubListRequest_request)
|
||||
{
|
||||
return (S2C_GetClubListResponse)await session.Call(C2S_GetClubListRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_GetClubListResponse> C2S_GetClubListRequest(this Session session)
|
||||
{
|
||||
using var C2S_GetClubListRequest_request = Fantasy.C2S_GetClubListRequest.Create();
|
||||
return (S2C_GetClubListResponse)await session.Call(C2S_GetClubListRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_JoinClubResponse> C2S_JoinClubRequest(this Session session, C2S_JoinClubRequest C2S_JoinClubRequest_request)
|
||||
{
|
||||
return (S2C_JoinClubResponse)await session.Call(C2S_JoinClubRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_JoinClubResponse> C2S_JoinClubRequest(this Session session, long clubId)
|
||||
{
|
||||
using var C2S_JoinClubRequest_request = Fantasy.C2S_JoinClubRequest.Create();
|
||||
C2S_JoinClubRequest_request.ClubId = clubId;
|
||||
return (S2C_JoinClubResponse)await session.Call(C2S_JoinClubRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_LeaveClubResponse> C2S_LeaveClubRequest(this Session session, C2S_LeaveClubRequest C2S_LeaveClubRequest_request)
|
||||
{
|
||||
return (S2C_LeaveClubResponse)await session.Call(C2S_LeaveClubRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_LeaveClubResponse> C2S_LeaveClubRequest(this Session session, long clubId)
|
||||
{
|
||||
using var C2S_LeaveClubRequest_request = Fantasy.C2S_LeaveClubRequest.Create();
|
||||
C2S_LeaveClubRequest_request.ClubId = clubId;
|
||||
return (S2C_LeaveClubResponse)await session.Call(C2S_LeaveClubRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_DissolveClubResponse> C2S_DissolveClubRequest(this Session session, C2S_DissolveClubRequest C2S_DissolveClubRequest_request)
|
||||
{
|
||||
return (S2C_DissolveClubResponse)await session.Call(C2S_DissolveClubRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_DissolveClubResponse> C2S_DissolveClubRequest(this Session session, long clubId)
|
||||
{
|
||||
using var C2S_DissolveClubRequest_request = Fantasy.C2S_DissolveClubRequest.Create();
|
||||
C2S_DissolveClubRequest_request.ClubId = clubId;
|
||||
return (S2C_DissolveClubResponse)await session.Call(C2S_DissolveClubRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_DisposeJoinResponse> C2S_DisposeJoinRequest(this Session session, C2S_DisposeJoinRequest C2S_DisposeJoinRequest_request)
|
||||
{
|
||||
return (S2C_DisposeJoinResponse)await session.Call(C2S_DisposeJoinRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static async FTask<S2C_DisposeJoinResponse> C2S_DisposeJoinRequest(this Session session, long clubId, long applicantId, int agree)
|
||||
{
|
||||
using var C2S_DisposeJoinRequest_request = Fantasy.C2S_DisposeJoinRequest.Create();
|
||||
C2S_DisposeJoinRequest_request.ClubId = clubId;
|
||||
C2S_DisposeJoinRequest_request.ApplicantId = applicantId;
|
||||
C2S_DisposeJoinRequest_request.Agree = agree;
|
||||
return (S2C_DisposeJoinResponse)await session.Call(C2S_DisposeJoinRequest_request);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void S2C_ClubChange(this Session session, S2C_ClubChange S2C_ClubChange_message)
|
||||
{
|
||||
session.Send(S2C_ClubChange_message);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void S2C_ClubChange(this Session session, ClubInfo club, int changeType)
|
||||
{
|
||||
using var S2C_ClubChange_message = Fantasy.S2C_ClubChange.Create();
|
||||
S2C_ClubChange_message.Club = club;
|
||||
S2C_ClubChange_message.ChangeType = changeType;
|
||||
session.Send(S2C_ClubChange_message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1eb917ef40b23bb45b05e2926e9b9afb
|
||||
5523
Assets/Scripts/Generate/NetworkProtocol/OuterMessage.cs
Normal file
5523
Assets/Scripts/Generate/NetworkProtocol/OuterMessage.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ac16629ba2ddb4832bfc3548b7a92da0
|
||||
92
Assets/Scripts/Generate/NetworkProtocol/OuterOpcode.cs
Normal file
92
Assets/Scripts/Generate/NetworkProtocol/OuterOpcode.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
namespace Fantasy
|
||||
{
|
||||
/// <summary>
|
||||
/// 本代码有编辑器生成,请不要再这里进行编辑。
|
||||
/// </summary>
|
||||
public static partial class OuterOpcode
|
||||
{
|
||||
public const uint C2Game_GetItemsRequest = 2281711377;
|
||||
public const uint Game2C_GetItemsResponse = 2415929105;
|
||||
public const uint C2Game_UseItemRequest = 2281711378;
|
||||
public const uint Game2C_UseItemResponse = 2415929106;
|
||||
public const uint Game2C_ItemChange = 2147493649;
|
||||
public const uint C2Game_RigChangeRequest = 2281711379;
|
||||
public const uint Game2C_RigChangeResponse = 2415929107;
|
||||
public const uint C2Game_SetSlotRequest = 2281711380;
|
||||
public const uint Game2C_SetSlotResponse = 2415929108;
|
||||
public const uint C2Game_GetFishsRequest = 2281711381;
|
||||
public const uint Game2C_GetFishsResponse = 2415929109;
|
||||
public const uint Game2C_FishChange = 2147493650;
|
||||
public const uint C2Game_SellFishRequest = 2281711382;
|
||||
public const uint Game2C_SellFishResponse = 2415929110;
|
||||
public const uint C2Game_GetShopItemsRequest = 2281711383;
|
||||
public const uint Game2C_GetShopItemsResponse = 2415929111;
|
||||
public const uint C2Game_BuyRequest = 2281711384;
|
||||
public const uint Game2C_BuyResponse = 2415929112;
|
||||
public const uint Game2C_RewardNotify = 2147493651;
|
||||
public const uint C2Game_GMRequest = 2281711385;
|
||||
public const uint Game2C_GMResponse = 2415929113;
|
||||
public const uint C2Map_CreateRoomRequest = 2281711386;
|
||||
public const uint Map2C_CreateRoomResponse = 2415929114;
|
||||
public const uint C2G_ExitRoomRequest = 268445457;
|
||||
public const uint G2C_ExitRoomResponse = 402663185;
|
||||
public const uint C2G_EnterMapRequest = 268445458;
|
||||
public const uint G2C_EnterMapResponse = 402663186;
|
||||
public const uint Map2C_ChangeMap = 2147493652;
|
||||
public const uint C2A_LoginRequest = 268445459;
|
||||
public const uint A2C_LoginResponse = 402663187;
|
||||
public const uint C2G_LoginRequest = 268445460;
|
||||
public const uint G2C_LoginResponse = 402663188;
|
||||
public const uint G2C_RepeatLogin = 134227729;
|
||||
public const uint C2Game_GetRoleInfoRequest = 2281711387;
|
||||
public const uint Game2C_GetRoleInfoResponse = 2415929115;
|
||||
public const uint Map2C_RoleEnterRoomNotify = 2147493653;
|
||||
public const uint Map2C_RoleExitRoomNotify = 2147493654;
|
||||
public const uint C2Map_TakeItemRequest = 2281711388;
|
||||
public const uint Map2C_TakeItemResponse = 2415929116;
|
||||
public const uint C2Map_RolePropertyChange = 2147493655;
|
||||
public const uint Map2C_RoleStateNotify = 2147493656;
|
||||
public const uint Map2C_RoleGearChangeNotify = 2147493657;
|
||||
public const uint Map2C_RolePropertyChangeNotify = 2147493658;
|
||||
public const uint C2Map_Move = 2147493659;
|
||||
public const uint C2Map_Look = 2147493660;
|
||||
public const uint Map2C_MoveNotify = 2147493661;
|
||||
public const uint Map2C_LookeNotify = 2147493662;
|
||||
public const uint C2S_GetConversationsRequest = 2281711389;
|
||||
public const uint S2C_GetConversationsResponse = 2415929117;
|
||||
public const uint C2S_SendMailRequest = 2281711390;
|
||||
public const uint S2C_SendMailResponse = 2415929118;
|
||||
public const uint C2S_DeleteMailRequest = 2281711391;
|
||||
public const uint S2C_DeleteMailResponse = 2415929119;
|
||||
public const uint S2C_HaveMail = 2147493663;
|
||||
public const uint S2C_MailState = 2147493664;
|
||||
public const uint C2Chat_SendMessageRequest = 2281711392;
|
||||
public const uint Chat2C_SendMessageResponse = 2415929120;
|
||||
public const uint Chat2C_Message = 2147493665;
|
||||
public const uint C2S_CreateChannelRequest = 2281711393;
|
||||
public const uint S2C_CreateChannelResponse = 2415929121;
|
||||
public const uint C2S_JoinChannelRequest = 2281711394;
|
||||
public const uint S2C_JoinChannelResponse = 2415929122;
|
||||
public const uint C2S_SendMessageRequest = 2281711395;
|
||||
public const uint S2C_SendMessageResponse = 2415929123;
|
||||
public const uint S2C_Message = 2147493666;
|
||||
public const uint C2S_CreateClubRequest = 2281711396;
|
||||
public const uint S2C_CreateClubResponse = 2415929124;
|
||||
public const uint C2S_GetClubInfoRequest = 2281711397;
|
||||
public const uint S2C_GetClubInfoResponse = 2415929125;
|
||||
public const uint C2S_GetMemberListRequest = 2281711398;
|
||||
public const uint S2C_GetMemberListResponse = 2415929126;
|
||||
public const uint C2S_GetClubListRequest = 2281711399;
|
||||
public const uint S2C_GetClubListResponse = 2415929127;
|
||||
public const uint C2S_JoinClubRequest = 2281711400;
|
||||
public const uint S2C_JoinClubResponse = 2415929128;
|
||||
public const uint C2S_LeaveClubRequest = 2281711401;
|
||||
public const uint S2C_LeaveClubResponse = 2415929129;
|
||||
public const uint C2S_DissolveClubRequest = 2281711402;
|
||||
public const uint S2C_DissolveClubResponse = 2415929130;
|
||||
public const uint C2S_DisposeJoinRequest = 2281711403;
|
||||
public const uint S2C_DisposeJoinResponse = 2415929131;
|
||||
public const uint S2C_ClubChange = 2147493667;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 79e8bd7cb8ff94462a0108fac5149a46
|
||||
22
Assets/Scripts/Generate/NetworkProtocol/RoamingType.cs
Normal file
22
Assets/Scripts/Generate/NetworkProtocol/RoamingType.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
namespace Fantasy
|
||||
{
|
||||
/// <summary>
|
||||
/// 本代码有编辑器生成,请不要再这里进行编辑。
|
||||
/// Roaming协议定义(需要定义10000以上、因为10000以内的框架预留)
|
||||
/// </summary>
|
||||
public static partial class RoamingType
|
||||
{
|
||||
public const int MapRoamingType = 10001; // Map
|
||||
public const int ChatRoamingType = 10002; // Chat
|
||||
|
||||
public static IEnumerable<int> RoamingTypes
|
||||
{
|
||||
get
|
||||
{
|
||||
yield return MapRoamingType;
|
||||
yield return ChatRoamingType;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 61409fb8349e78a4ca1db7e0b5342687
|
||||
24
Assets/Scripts/Generate/NetworkProtocol/RouteType.cs
Normal file
24
Assets/Scripts/Generate/NetworkProtocol/RouteType.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
namespace Fantasy
|
||||
{
|
||||
/// <summary>
|
||||
/// 本代码有编辑器生成,请不要再这里进行编辑。
|
||||
/// Route协议定义(需要定义1000以上、因为1000以内的框架预留)
|
||||
/// </summary>
|
||||
public static partial class RouteType
|
||||
{
|
||||
public const int GateRoute = 1001; // Gate
|
||||
public const int SocialRoute = 1002; // Social
|
||||
public const int GameRoute = 1003; // Game
|
||||
|
||||
public static IEnumerable<int> RoamingTypes
|
||||
{
|
||||
get
|
||||
{
|
||||
yield return GateRoute;
|
||||
yield return SocialRoute;
|
||||
yield return GameRoute;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 93ff0f8f28d294cdab3c6346d873065d
|
||||
8
Assets/Scripts/Generate/Test.meta
Normal file
8
Assets/Scripts/Generate/Test.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8697dbab220ff8f44983254e53bfdc2e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user