修改为luban
This commit is contained in:
70
Entity/Generate/ConfigTable/Bait.cs
Normal file
70
Entity/Generate/ConfigTable/Bait.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Bait : Luban.BeanBase
|
||||
{
|
||||
public Bait(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
EfficacyBase = (int)_obj.GetValue("efficacy_base");
|
||||
{ var __json0 = _obj.GetValue("arr"); Arr = new System.Collections.Generic.List<int>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { int __v0; __v0 = (int)__e0; Arr.Add(__v0); } }
|
||||
Strength = (int)_obj.GetValue("strength");
|
||||
}
|
||||
|
||||
public static Bait DeserializeBait(JToken _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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
73
Entity/Generate/ConfigTable/BasicConfig.cs
Normal file
73
Entity/Generate/ConfigTable/BasicConfig.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class BasicConfig : Luban.BeanBase
|
||||
{
|
||||
public BasicConfig(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
X1 = (int)_obj.GetValue("x1");
|
||||
X2 = (int)_obj.GetValue("x2");
|
||||
X3 = (int)_obj.GetValue("x3");
|
||||
X4 = (int)_obj.GetValue("x4");
|
||||
X5 = (int)_obj.GetValue("x5");
|
||||
X6 = (int)_obj.GetValue("x6");
|
||||
{ var __json0 = _obj.GetValue("x7"); X7 = new System.Collections.Generic.List<int>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { int __v0; __v0 = (int)__e0; X7.Add(__v0); } }
|
||||
}
|
||||
|
||||
public static BasicConfig DeserializeBasicConfig(JToken _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) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
Entity/Generate/ConfigTable/Bobber.cs
Normal file
64
Entity/Generate/ConfigTable/Bobber.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Bobber : Luban.BeanBase
|
||||
{
|
||||
public Bobber(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
Displacement = (int)_obj.GetValue("displacement");
|
||||
{ var __json0 = _obj.GetValue("night_light"); NightLight = new System.Collections.Generic.List<float>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { float __v0; __v0 = (float)__e0; NightLight.Add(__v0); } }
|
||||
}
|
||||
|
||||
public static Bobber DeserializeBobber(JToken _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) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,87 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class BaitConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public uint EfficacyBase { get; set; } // 吸引力
|
||||
[ProtoMember(3)]
|
||||
public uint[] Arr { get; set; } = Array.Empty<uint>(); // 重量(克)
|
||||
[ProtoMember(4)]
|
||||
public string[] ArrStr { get; set; } = Array.Empty<string>(); // 重量(克)
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<BaitConfig> Context => ConfigTableHelper.Table<BaitConfig>();
|
||||
|
||||
public static BaitConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static BaitConfig Get(Predicate<BaitConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static BaitConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static BaitConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static BaitConfig Fist(Predicate<BaitConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static BaitConfig Last(Predicate<BaitConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<BaitConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<BaitConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<BaitConfig> GetList(Predicate<BaitConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<BaitConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class BasicConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public string Name { get; set; } // 参数名
|
||||
[ProtoMember(3)]
|
||||
public string[] Val { get; set; } = Array.Empty<string>(); // 参数值
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<BasicConfig> Context => ConfigTableHelper.Table<BasicConfig>();
|
||||
|
||||
public static BasicConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static BasicConfig Get(Predicate<BasicConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static BasicConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static BasicConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static BasicConfig Fist(Predicate<BasicConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static BasicConfig Last(Predicate<BasicConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<BasicConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<BasicConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<BasicConfig> GetList(Predicate<BasicConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<BasicConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class BobberConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public uint Displacement { get; set; } // 位移
|
||||
[ProtoMember(3)]
|
||||
public uint NightLight { get; set; } // 是否夜光
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<BobberConfig> Context => ConfigTableHelper.Table<BobberConfig>();
|
||||
|
||||
public static BobberConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static BobberConfig Get(Predicate<BobberConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static BobberConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static BobberConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static BobberConfig Fist(Predicate<BobberConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static BobberConfig Last(Predicate<BobberConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<BobberConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<BobberConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<BobberConfig> GetList(Predicate<BobberConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<BobberConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class FeederConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public uint Capacity { get; set; } // 能力
|
||||
[ProtoMember(3)]
|
||||
public uint Weight { get; set; } // 重量(克)
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<FeederConfig> Context => ConfigTableHelper.Table<FeederConfig>();
|
||||
|
||||
public static FeederConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static FeederConfig Get(Predicate<FeederConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static FeederConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static FeederConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static FeederConfig Fist(Predicate<FeederConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static FeederConfig Last(Predicate<FeederConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<FeederConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<FeederConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<FeederConfig> GetList(Predicate<FeederConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<FeederConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,93 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class FishConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public string[] Model { get; set; } = Array.Empty<string>(); // 模型
|
||||
[ProtoMember(3)]
|
||||
public uint Type { get; set; } // 类型
|
||||
[ProtoMember(4)]
|
||||
public uint SpeciesName { get; set; } // 鱼类型Id
|
||||
[ProtoMember(5)]
|
||||
public uint MinWeight { get; set; } // 最小重量(克)
|
||||
[ProtoMember(6)]
|
||||
public uint MaxWeight { get; set; } // 最大重量(克)
|
||||
[ProtoMember(7)]
|
||||
public uint Accept { get; set; } // 接受饵
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<FishConfig> Context => ConfigTableHelper.Table<FishConfig>();
|
||||
|
||||
public static FishConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static FishConfig Get(Predicate<FishConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static FishConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static FishConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static FishConfig Fist(Predicate<FishConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static FishConfig Last(Predicate<FishConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<FishConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<FishConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<FishConfig> GetList(Predicate<FishConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<FishConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,97 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class GoodsConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public uint[] Shop { get; set; } = Array.Empty<uint>(); // 出现商店
|
||||
[ProtoMember(3)]
|
||||
public uint Group { get; set; } // 组
|
||||
[ProtoMember(4)]
|
||||
public string[] Items { get; set; } = Array.Empty<string>(); // 物品
|
||||
[ProtoMember(5)]
|
||||
public uint Price1 { get; set; } // 银币价格
|
||||
[ProtoMember(6)]
|
||||
public uint Price2 { get; set; } // 金币价格
|
||||
[ProtoMember(7)]
|
||||
public uint[] Label { get; set; } = Array.Empty<uint>(); // 标签
|
||||
[ProtoMember(8)]
|
||||
public uint Number { get; set; } // 可购买数量
|
||||
[ProtoMember(9)]
|
||||
public uint Disable { get; set; } // 禁用状态
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<GoodsConfig> Context => ConfigTableHelper.Table<GoodsConfig>();
|
||||
|
||||
public static GoodsConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static GoodsConfig Get(Predicate<GoodsConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static GoodsConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static GoodsConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static GoodsConfig Fist(Predicate<GoodsConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static GoodsConfig Last(Predicate<GoodsConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<GoodsConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<GoodsConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<GoodsConfig> GetList(Predicate<GoodsConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<GoodsConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,83 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class HookConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public uint Zadzior { get; set; } // 长钉
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<HookConfig> Context => ConfigTableHelper.Table<HookConfig>();
|
||||
|
||||
public static HookConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static HookConfig Get(Predicate<HookConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static HookConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static HookConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static HookConfig Fist(Predicate<HookConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static HookConfig Last(Predicate<HookConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<HookConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<HookConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<HookConfig> GetList(Predicate<HookConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<HookConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,83 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class InitConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public int Amount { get; set; } // 数量
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<InitConfig> Context => ConfigTableHelper.Table<InitConfig>();
|
||||
|
||||
public static InitConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static InitConfig Get(Predicate<InitConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static InitConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static InitConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static InitConfig Fist(Predicate<InitConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static InitConfig Last(Predicate<InitConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<InitConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<InitConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<InitConfig> GetList(Predicate<InitConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<InitConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,97 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class ItemConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public string Model { get; set; } // 模型
|
||||
[ProtoMember(3)]
|
||||
public uint Type { get; set; } // 子类型
|
||||
[ProtoMember(4)]
|
||||
public uint Quality { get; set; } // 品质
|
||||
[ProtoMember(5)]
|
||||
public uint Brand { get; set; } // 品牌
|
||||
[ProtoMember(6)]
|
||||
public uint Weight { get; set; } // 重量(克)
|
||||
[ProtoMember(7)]
|
||||
public uint Length { get; set; } // 长度(毫米)
|
||||
[ProtoMember(8)]
|
||||
public uint Max { get; set; } // 最大堆叠数量
|
||||
[ProtoMember(9)]
|
||||
public uint AutoUse { get; set; } // 获得自动使用
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<ItemConfig> Context => ConfigTableHelper.Table<ItemConfig>();
|
||||
|
||||
public static ItemConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static ItemConfig Get(Predicate<ItemConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static ItemConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static ItemConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static ItemConfig Fist(Predicate<ItemConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static ItemConfig Last(Predicate<ItemConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<ItemConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<ItemConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<ItemConfig> GetList(Predicate<ItemConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<ItemConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class LineConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public uint Strength { get; set; } // 强度
|
||||
[ProtoMember(3)]
|
||||
public uint Size { get; set; } // 尺寸
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<LineConfig> Context => ConfigTableHelper.Table<LineConfig>();
|
||||
|
||||
public static LineConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static LineConfig Get(Predicate<LineConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static LineConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static LineConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static LineConfig Fist(Predicate<LineConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static LineConfig Last(Predicate<LineConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<LineConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<LineConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<LineConfig> GetList(Predicate<LineConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<LineConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class LureConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public uint[] Hook { get; set; } = Array.Empty<uint>(); // 勾
|
||||
[ProtoMember(3)]
|
||||
public uint HookNum { get; set; } // 装配鱼钩数量
|
||||
[ProtoMember(4)]
|
||||
public uint EfficacyBase { get; set; } // 吸引力
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<LureConfig> Context => ConfigTableHelper.Table<LureConfig>();
|
||||
|
||||
public static LureConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static LureConfig Get(Predicate<LureConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static LureConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static LureConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static LureConfig Fist(Predicate<LureConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static LureConfig Last(Predicate<LureConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<LureConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<LureConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<LureConfig> GetList(Predicate<LureConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<LureConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class ReelConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public uint ReelType { get; set; } // 鱼轮类型
|
||||
[ProtoMember(3)]
|
||||
public float[] GearRatio { get; set; } = Array.Empty<float>(); // 组件比
|
||||
[ProtoMember(4)]
|
||||
public uint Strength { get; set; } // 强度
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<ReelConfig> Context => ConfigTableHelper.Table<ReelConfig>();
|
||||
|
||||
public static ReelConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static ReelConfig Get(Predicate<ReelConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static ReelConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static ReelConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static ReelConfig Fist(Predicate<ReelConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static ReelConfig Last(Predicate<ReelConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<ReelConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<ReelConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<ReelConfig> GetList(Predicate<ReelConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<ReelConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class RingConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public string Model { get; set; } // 模型
|
||||
[ProtoMember(3)]
|
||||
public string Icon { get; set; } // 图标
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<RingConfig> Context => ConfigTableHelper.Table<RingConfig>();
|
||||
|
||||
public static RingConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static RingConfig Get(Predicate<RingConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static RingConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static RingConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static RingConfig Fist(Predicate<RingConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static RingConfig Last(Predicate<RingConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<RingConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<RingConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<RingConfig> GetList(Predicate<RingConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<RingConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,91 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class RodConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public uint RodType { get; set; } // 鱼竿类型
|
||||
[ProtoMember(3)]
|
||||
public uint Ring { get; set; } // 导线圈
|
||||
[ProtoMember(4)]
|
||||
public uint Strength { get; set; } // 强度
|
||||
[ProtoMember(5)]
|
||||
public uint MaxRange { get; set; } // 最大范围
|
||||
[ProtoMember(6)]
|
||||
public uint ConstructionType { get; set; } // 结构类型
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<RodConfig> Context => ConfigTableHelper.Table<RodConfig>();
|
||||
|
||||
public static RodConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static RodConfig Get(Predicate<RodConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static RodConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static RodConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static RodConfig Fist(Predicate<RodConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static RodConfig Last(Predicate<RodConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<RodConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<RodConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<RodConfig> GetList(Predicate<RodConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<RodConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class RodRingConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public string Model { get; set; } // 模型
|
||||
[ProtoMember(3)]
|
||||
public uint Strength { get; set; } // 强度
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<RodRingConfig> Context => ConfigTableHelper.Table<RodRingConfig>();
|
||||
|
||||
public static RodRingConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static RodRingConfig Get(Predicate<RodRingConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static RodRingConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static RodRingConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static RodRingConfig Fist(Predicate<RodRingConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static RodRingConfig Last(Predicate<RodRingConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<RodRingConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<RodRingConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<RodRingConfig> GetList(Predicate<RodRingConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<RodRingConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,89 +0,0 @@
|
||||
using System;
|
||||
using LightProto;
|
||||
using Fantasy;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using Fantasy.Serialize;
|
||||
using NBF.ConfigTable;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[ProtoContract]
|
||||
public sealed partial class WeightConfig : ASerialize, IConfigTable
|
||||
{
|
||||
|
||||
[ProtoMember(1)]
|
||||
public uint Id { get; set; } // Id
|
||||
[ProtoMember(2)]
|
||||
public string Model { get; set; } // 模型
|
||||
[ProtoMember(3)]
|
||||
public string Icon { get; set; } // 图标
|
||||
[ProtoMember(4)]
|
||||
public uint Type { get; set; } // 类型
|
||||
[ProtoMember(5)]
|
||||
public uint Weight { get; set; } // 重量(克)
|
||||
[ProtoIgnore]
|
||||
public uint Key => Id;
|
||||
|
||||
#region Static
|
||||
|
||||
private static ConfigContext<WeightConfig> Context => ConfigTableHelper.Table<WeightConfig>();
|
||||
|
||||
public static WeightConfig Get(uint key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static WeightConfig Get(Predicate<WeightConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static WeightConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static WeightConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static WeightConfig Fist(Predicate<WeightConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static WeightConfig Last(Predicate<WeightConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<WeightConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
public static List<WeightConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<WeightConfig> GetList(Predicate<WeightConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
|
||||
{
|
||||
ConfigTableHelper.ParseLine<WeightConfig>(arr);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
64
Entity/Generate/ConfigTable/Feeder.cs
Normal file
64
Entity/Generate/ConfigTable/Feeder.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Feeder : Luban.BeanBase
|
||||
{
|
||||
public Feeder(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
Capacity = (int)_obj.GetValue("capacity");
|
||||
Weight = (int)_obj.GetValue("weight");
|
||||
}
|
||||
|
||||
public static Feeder DeserializeFeeder(JToken _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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
76
Entity/Generate/ConfigTable/Fish.cs
Normal file
76
Entity/Generate/ConfigTable/Fish.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Fish : Luban.BeanBase
|
||||
{
|
||||
public Fish(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
Name = (string)_obj.GetValue("name");
|
||||
MinWeight = (int)_obj.GetValue("min_weight");
|
||||
MaxWeight = (int)_obj.GetValue("max_weight");
|
||||
Accept = (int)_obj.GetValue("accept");
|
||||
}
|
||||
|
||||
public static Fish DeserializeFish(JToken _buf)
|
||||
{
|
||||
return new Fish(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 鱼名字
|
||||
/// </summary>
|
||||
public readonly string Name;
|
||||
/// <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 + ","
|
||||
+ "minWeight:" + MinWeight + ","
|
||||
+ "maxWeight:" + MaxWeight + ","
|
||||
+ "accept:" + Accept + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
94
Entity/Generate/ConfigTable/Goods.cs
Normal file
94
Entity/Generate/ConfigTable/Goods.cs
Normal file
@@ -0,0 +1,94 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Goods : Luban.BeanBase
|
||||
{
|
||||
public Goods(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
Group = (int)_obj.GetValue("group");
|
||||
{ var __json0 = _obj.GetValue("items"); Items = new System.Collections.Generic.List<int>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { int __v0; __v0 = (int)__e0; Items.Add(__v0); } }
|
||||
Price1 = (int)_obj.GetValue("price1");
|
||||
Price2 = (int)_obj.GetValue("price2");
|
||||
{ var __json0 = _obj.GetValue("label"); Label = new System.Collections.Generic.List<int>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { int __v0; __v0 = (int)__e0; Label.Add(__v0); } }
|
||||
Number = (int)_obj.GetValue("number");
|
||||
Disable = (int)_obj.GetValue("disable");
|
||||
}
|
||||
|
||||
public static Goods DeserializeGoods(JToken _buf)
|
||||
{
|
||||
return new Goods(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <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 + ","
|
||||
+ "group:" + Group + ","
|
||||
+ "items:" + Luban.StringUtil.CollectionToString(Items) + ","
|
||||
+ "price1:" + Price1 + ","
|
||||
+ "price2:" + Price2 + ","
|
||||
+ "label:" + Luban.StringUtil.CollectionToString(Label) + ","
|
||||
+ "number:" + Number + ","
|
||||
+ "disable:" + Disable + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/Hook.cs
Normal file
58
Entity/Generate/ConfigTable/Hook.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Hook : Luban.BeanBase
|
||||
{
|
||||
public Hook(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
Ding = (int)_obj.GetValue("ding");
|
||||
}
|
||||
|
||||
public static Hook DeserializeHook(JToken _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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/InitItemConfig.cs
Normal file
58
Entity/Generate/ConfigTable/InitItemConfig.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class InitItemConfig : Luban.BeanBase
|
||||
{
|
||||
public InitItemConfig(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
Count = (int)_obj.GetValue("count");
|
||||
}
|
||||
|
||||
public static InitItemConfig DeserializeInitItemConfig(JToken _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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
106
Entity/Generate/ConfigTable/Item.cs
Normal file
106
Entity/Generate/ConfigTable/Item.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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Item : Luban.BeanBase
|
||||
{
|
||||
public Item(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
Type = (int)_obj.GetValue("type");
|
||||
Quality = (int)_obj.GetValue("quality");
|
||||
Brand = (int)_obj.GetValue("brand");
|
||||
Weight = (int)_obj.GetValue("weight");
|
||||
Length = (int)_obj.GetValue("length");
|
||||
Max = (int)_obj.GetValue("max");
|
||||
AutoUse = (int)_obj.GetValue("auto_use");
|
||||
{ var __json0 = _obj.GetValue("result1"); Result1 = new System.Collections.Generic.List<int>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { int __v0; __v0 = (int)__e0; Result1.Add(__v0); } }
|
||||
{ var __json0 = _obj.GetValue("result2"); Result2 = new System.Collections.Generic.List<string>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { string __v0; __v0 = (string)__e0; Result2.Add(__v0); } }
|
||||
}
|
||||
|
||||
public static Item DeserializeItem(JToken _buf)
|
||||
{
|
||||
return new Item(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <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 + ","
|
||||
+ "type:" + Type + ","
|
||||
+ "quality:" + Quality + ","
|
||||
+ "brand:" + Brand + ","
|
||||
+ "weight:" + Weight + ","
|
||||
+ "length:" + Length + ","
|
||||
+ "max:" + Max + ","
|
||||
+ "autoUse:" + AutoUse + ","
|
||||
+ "result1:" + Luban.StringUtil.CollectionToString(Result1) + ","
|
||||
+ "result2:" + Luban.StringUtil.CollectionToString(Result2) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
Entity/Generate/ConfigTable/Line.cs
Normal file
64
Entity/Generate/ConfigTable/Line.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Line : Luban.BeanBase
|
||||
{
|
||||
public Line(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
Strength = (int)_obj.GetValue("strength");
|
||||
Size = (int)_obj.GetValue("size");
|
||||
}
|
||||
|
||||
public static Line DeserializeLine(JToken _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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
70
Entity/Generate/ConfigTable/Lure.cs
Normal file
70
Entity/Generate/ConfigTable/Lure.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Lure : Luban.BeanBase
|
||||
{
|
||||
public Lure(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
{ var __json0 = _obj.GetValue("hook"); Hook = new System.Collections.Generic.List<int>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { int __v0; __v0 = (int)__e0; Hook.Add(__v0); } }
|
||||
HookNum = (int)_obj.GetValue("hook_num");
|
||||
EfficacyBase = (int)_obj.GetValue("efficacy_base");
|
||||
}
|
||||
|
||||
public static Lure DeserializeLure(JToken _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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
70
Entity/Generate/ConfigTable/Reel.cs
Normal file
70
Entity/Generate/ConfigTable/Reel.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Reel : Luban.BeanBase
|
||||
{
|
||||
public Reel(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
ReelType = (int)_obj.GetValue("reel_type");
|
||||
{ var __json0 = _obj.GetValue("gear_ratio"); GearRatio = new System.Collections.Generic.List<float>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { float __v0; __v0 = (float)__e0; GearRatio.Add(__v0); } }
|
||||
Strength = (int)_obj.GetValue("strength");
|
||||
}
|
||||
|
||||
public static Reel DeserializeReel(JToken _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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
82
Entity/Generate/ConfigTable/Rod.cs
Normal file
82
Entity/Generate/ConfigTable/Rod.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Rod : Luban.BeanBase
|
||||
{
|
||||
public Rod(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
RodType = (int)_obj.GetValue("rod_type");
|
||||
Ring = (int)_obj.GetValue("ring");
|
||||
Strength = (int)_obj.GetValue("strength");
|
||||
MaxRange = (int)_obj.GetValue("max_range");
|
||||
ConstructionType = (int)_obj.GetValue("construction_type");
|
||||
}
|
||||
|
||||
public static Rod DeserializeRod(JToken _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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
94
Entity/Generate/ConfigTable/Shop.cs
Normal file
94
Entity/Generate/ConfigTable/Shop.cs
Normal file
@@ -0,0 +1,94 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public sealed partial class Shop : Luban.BeanBase
|
||||
{
|
||||
public Shop(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
Group = (int)_obj.GetValue("group");
|
||||
{ var __json0 = _obj.GetValue("items"); Items = new System.Collections.Generic.List<int>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { int __v0; __v0 = (int)__e0; Items.Add(__v0); } }
|
||||
Price1 = (int)_obj.GetValue("price1");
|
||||
Price2 = (int)_obj.GetValue("price2");
|
||||
{ var __json0 = _obj.GetValue("label"); Label = new System.Collections.Generic.List<int>((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { int __v0; __v0 = (int)__e0; Label.Add(__v0); } }
|
||||
Number = (int)_obj.GetValue("number");
|
||||
Disable = (int)_obj.GetValue("disable");
|
||||
}
|
||||
|
||||
public static Shop DeserializeShop(JToken _buf)
|
||||
{
|
||||
return new Shop(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <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__ = 2576150;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "group:" + Group + ","
|
||||
+ "items:" + Luban.StringUtil.CollectionToString(Items) + ","
|
||||
+ "price1:" + Price1 + ","
|
||||
+ "price2:" + Price2 + ","
|
||||
+ "label:" + Luban.StringUtil.CollectionToString(Label) + ","
|
||||
+ "number:" + Number + ","
|
||||
+ "disable:" + Disable + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
113
Entity/Generate/ConfigTable/Tables.cs
Normal file
113
Entity/Generate/ConfigTable/Tables.cs
Normal file
@@ -0,0 +1,113 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
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; }
|
||||
/// <summary>
|
||||
/// 商店
|
||||
/// </summary>
|
||||
public TbShop TbShop {get; }
|
||||
|
||||
|
||||
public Tables(System.Func<string, JArray> 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"));
|
||||
TbShop = new TbShop(loader("tbshop"));
|
||||
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);
|
||||
TbShop.ResolveRef(this);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbBait.cs
Normal file
58
Entity/Generate/ConfigTable/TbBait.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Bait>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Bait>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Bait _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbBasicConfig.cs
Normal file
58
Entity/Generate/ConfigTable/TbBasicConfig.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, BasicConfig>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<BasicConfig>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
BasicConfig _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbBobber.cs
Normal file
58
Entity/Generate/ConfigTable/TbBobber.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Bobber>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Bobber>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Bobber _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbFeeder.cs
Normal file
58
Entity/Generate/ConfigTable/TbFeeder.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Feeder>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Feeder>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Feeder _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbFish.cs
Normal file
58
Entity/Generate/ConfigTable/TbFish.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Fish>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Fish>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Fish _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbGoods.cs
Normal file
58
Entity/Generate/ConfigTable/TbGoods.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Goods>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Goods>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Goods _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbHook.cs
Normal file
58
Entity/Generate/ConfigTable/TbHook.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Hook>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Hook>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Hook _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbInitItemConfig.cs
Normal file
58
Entity/Generate/ConfigTable/TbInitItemConfig.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, InitItemConfig>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<InitItemConfig>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
InitItemConfig _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbItem.cs
Normal file
58
Entity/Generate/ConfigTable/TbItem.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Item>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Item>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Item _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbLine.cs
Normal file
58
Entity/Generate/ConfigTable/TbLine.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Line>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Line>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Line _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbLure.cs
Normal file
58
Entity/Generate/ConfigTable/TbLure.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Lure>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Lure>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Lure _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbReel.cs
Normal file
58
Entity/Generate/ConfigTable/TbReel.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Reel>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Reel>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Reel _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbRod.cs
Normal file
58
Entity/Generate/ConfigTable/TbRod.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
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(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Rod>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Rod>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Rod _v;
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbShop.cs
Normal file
58
Entity/Generate/ConfigTable/TbShop.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
using Luban;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 商店
|
||||
/// </summary>
|
||||
public partial class TbShop
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, Shop> _dataMap;
|
||||
private readonly System.Collections.Generic.List<Shop> _dataList;
|
||||
|
||||
public TbShop(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Shop>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Shop>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Shop _v;
|
||||
_v = global::cfg.Shop.DeserializeShop(_ele);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, Shop> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<Shop> DataList => _dataList;
|
||||
|
||||
public Shop GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
|
||||
public Shop Get(int key) => _dataMap[key];
|
||||
public Shop this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
50
Entity/Generate/ConfigTable/vector2.cs
Normal file
50
Entity/Generate/ConfigTable/vector2.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public partial struct vector2
|
||||
{
|
||||
public vector2(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
X = (float)_obj.GetValue("x");
|
||||
Y = (float)_obj.GetValue("y");
|
||||
}
|
||||
|
||||
public static vector2 Deserializevector2(JToken _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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
53
Entity/Generate/ConfigTable/vector3.cs
Normal file
53
Entity/Generate/ConfigTable/vector3.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public partial struct vector3
|
||||
{
|
||||
public vector3(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
X = (float)_obj.GetValue("x");
|
||||
Y = (float)_obj.GetValue("y");
|
||||
Z = (float)_obj.GetValue("z");
|
||||
}
|
||||
|
||||
public static vector3 Deserializevector3(JToken _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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
56
Entity/Generate/ConfigTable/vector4.cs
Normal file
56
Entity/Generate/ConfigTable/vector4.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Newtonsoft.Json.Linq;
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
|
||||
public partial struct vector4
|
||||
{
|
||||
public vector4(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
X = (float)_obj.GetValue("x");
|
||||
Y = (float)_obj.GetValue("y");
|
||||
Z = (float)_obj.GetValue("z");
|
||||
W = (float)_obj.GetValue("w");
|
||||
}
|
||||
|
||||
public static vector4 Deserializevector4(JToken _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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -589,4 +589,93 @@ namespace Fantasy
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// Chat通知Gate发送一个全服广播的聊天信息
|
||||
/// </summary>
|
||||
////////// ******** 聊天 *******/////////////
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class Chat2G_ChatMessage : AMessage, IAddressMessage
|
||||
{
|
||||
public static Chat2G_ChatMessage Create(bool autoReturn = true)
|
||||
{
|
||||
var chat2G_ChatMessage = MessageObjectPool<Chat2G_ChatMessage>.Rent();
|
||||
chat2G_ChatMessage.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chat2G_ChatMessage.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chat2G_ChatMessage;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
ChatInfoTree = default;
|
||||
MessageObjectPool<Chat2G_ChatMessage>.Return(this);
|
||||
}
|
||||
public uint OpCode() { return InnerOpcode.Chat2G_ChatMessage; }
|
||||
[ProtoMember(1)]
|
||||
public ChatInfoTree ChatInfoTree { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 其他服务器发送聊天消息到Chat
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class Other2Chat_ChatMessage : AMessage, IAddressMessage
|
||||
{
|
||||
public static Other2Chat_ChatMessage Create(bool autoReturn = true)
|
||||
{
|
||||
var other2Chat_ChatMessage = MessageObjectPool<Other2Chat_ChatMessage>.Rent();
|
||||
other2Chat_ChatMessage.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
other2Chat_ChatMessage.SetIsPool(false);
|
||||
}
|
||||
|
||||
return other2Chat_ChatMessage;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
ChatInfoTree = default;
|
||||
MessageObjectPool<Other2Chat_ChatMessage>.Return(this);
|
||||
}
|
||||
public uint OpCode() { return InnerOpcode.Other2Chat_ChatMessage; }
|
||||
[ProtoMember(1)]
|
||||
public ChatInfoTree ChatInfoTree { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -18,5 +18,7 @@ namespace Fantasy
|
||||
public const uint Map2G_EnterMapResponse = 1207969556;
|
||||
public const uint G2Map_ExitRoomRequest = 1073751829;
|
||||
public const uint Map2G_ExiRoomResponse = 1207969557;
|
||||
public const uint Chat2G_ChatMessage = 939534099;
|
||||
public const uint Other2Chat_ChatMessage = 939534100;
|
||||
}
|
||||
}
|
||||
@@ -2839,7 +2839,398 @@ namespace Fantasy
|
||||
[ProtoMember(2)]
|
||||
public long MailId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送一个聊天消息给Chat服务器,中间是经过Gate中转的
|
||||
/// </summary>
|
||||
////////// ******** 频道聊天 *******/////////////
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class C2Chat_SendMessageRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Chat_SendMessageRequest Create(bool autoReturn = true)
|
||||
{
|
||||
var c2Chat_SendMessageRequest = MessageObjectPool<C2Chat_SendMessageRequest>.Rent();
|
||||
c2Chat_SendMessageRequest.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
c2Chat_SendMessageRequest.SetIsPool(false);
|
||||
}
|
||||
|
||||
return c2Chat_SendMessageRequest;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
if (ChatInfoTree != null)
|
||||
{
|
||||
ChatInfoTree.Dispose();
|
||||
ChatInfoTree = null;
|
||||
}
|
||||
MessageObjectPool<C2Chat_SendMessageRequest>.Return(this);
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2Chat_SendMessageRequest; }
|
||||
[ProtoIgnore]
|
||||
public Chat2C_SendMessageResponse ResponseType { get; set; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public ChatInfoTree ChatInfoTree { get; set; }
|
||||
}
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class Chat2C_SendMessageResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Chat2C_SendMessageResponse Create(bool autoReturn = true)
|
||||
{
|
||||
var chat2C_SendMessageResponse = MessageObjectPool<Chat2C_SendMessageResponse>.Rent();
|
||||
chat2C_SendMessageResponse.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chat2C_SendMessageResponse.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chat2C_SendMessageResponse;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
ErrorCode = 0;
|
||||
MessageObjectPool<Chat2C_SendMessageResponse>.Return(this);
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Chat2C_SendMessageResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class Chat2C_Message : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Chat2C_Message Create(bool autoReturn = true)
|
||||
{
|
||||
var chat2C_Message = MessageObjectPool<Chat2C_Message>.Rent();
|
||||
chat2C_Message.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chat2C_Message.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chat2C_Message;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
if (ChatInfoTree != null)
|
||||
{
|
||||
ChatInfoTree.Dispose();
|
||||
ChatInfoTree = null;
|
||||
}
|
||||
MessageObjectPool<Chat2C_Message>.Return(this);
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Chat2C_Message; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public ChatInfoTree ChatInfoTree { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 聊天消息树
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatInfoTree : AMessage, IDisposable
|
||||
{
|
||||
public static ChatInfoTree Create(bool autoReturn = true)
|
||||
{
|
||||
var chatInfoTree = MessageObjectPool<ChatInfoTree>.Rent();
|
||||
chatInfoTree.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chatInfoTree.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chatInfoTree;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
ChatChannelType = default;
|
||||
ChatChannelId = default;
|
||||
UnitId = default;
|
||||
UserName = default;
|
||||
Target.Clear();
|
||||
Node.Clear();
|
||||
MessageObjectPool<ChatInfoTree>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public int ChatChannelType { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long ChatChannelId { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public long UnitId { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public string UserName { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public List<long> Target { get; set; } = new List<long>();
|
||||
[ProtoMember(6)]
|
||||
public List<ChatInfoNode> Node { get; set; } = new List<ChatInfoNode>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 聊天信息节点
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatInfoNode : AMessage, IDisposable
|
||||
{
|
||||
public static ChatInfoNode Create(bool autoReturn = true)
|
||||
{
|
||||
var chatInfoNode = MessageObjectPool<ChatInfoNode>.Rent();
|
||||
chatInfoNode.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chatInfoNode.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chatInfoNode;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
ChatNodeType = default;
|
||||
ChatNodeEvent = default;
|
||||
Content = default;
|
||||
Color = default;
|
||||
Data = null;
|
||||
MessageObjectPool<ChatInfoNode>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public int ChatNodeType { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public int ChatNodeEvent { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public string Content { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public string Color { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public byte[] Data { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 聊天位置信息节点
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatPositionNode : AMessage, IDisposable
|
||||
{
|
||||
public static ChatPositionNode Create(bool autoReturn = true)
|
||||
{
|
||||
var chatPositionNode = MessageObjectPool<ChatPositionNode>.Rent();
|
||||
chatPositionNode.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chatPositionNode.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chatPositionNode;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
MapName = default;
|
||||
PosX = default;
|
||||
PosY = default;
|
||||
PosZ = default;
|
||||
MessageObjectPool<ChatPositionNode>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public string MapName { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public float PosX { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public float PosY { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public float PosZ { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 聊天位置信息节点
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatOpenUINode : AMessage, IDisposable
|
||||
{
|
||||
public static ChatOpenUINode Create(bool autoReturn = true)
|
||||
{
|
||||
var chatOpenUINode = MessageObjectPool<ChatOpenUINode>.Rent();
|
||||
chatOpenUINode.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chatOpenUINode.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chatOpenUINode;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
UIName = default;
|
||||
MessageObjectPool<ChatOpenUINode>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public string UIName { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 聊天连接信息节点
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatLinkNode : AMessage, IDisposable
|
||||
{
|
||||
public static ChatLinkNode Create(bool autoReturn = true)
|
||||
{
|
||||
var chatLinkNode = MessageObjectPool<ChatLinkNode>.Rent();
|
||||
chatLinkNode.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chatLinkNode.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chatLinkNode;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
Link = default;
|
||||
MessageObjectPool<ChatLinkNode>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public string Link { get; set; }
|
||||
}
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatUserInfo : AMessage, IDisposable
|
||||
@@ -4581,7 +4972,7 @@ namespace Fantasy
|
||||
MessageObjectPool<ItemInfo>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public uint ConfigId { get; set; }
|
||||
public int ConfigId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(3)]
|
||||
@@ -4631,18 +5022,18 @@ namespace Fantasy
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
ConfigId = default;
|
||||
Price = default;
|
||||
Currency = default;
|
||||
Price1 = default;
|
||||
Price2 = default;
|
||||
Sort = default;
|
||||
Tag = default;
|
||||
MessageObjectPool<ShopItemInfo>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public uint ConfigId { get; set; }
|
||||
public int ConfigId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint Price { get; set; }
|
||||
public uint Price1 { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public uint Currency { get; set; }
|
||||
public uint Price2 { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public uint Sort { get; set; }
|
||||
[ProtoMember(5)]
|
||||
@@ -4693,7 +5084,7 @@ namespace Fantasy
|
||||
MessageObjectPool<FishInfo>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public uint ConfigId { get; set; }
|
||||
public int ConfigId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(3)]
|
||||
@@ -4795,7 +5186,7 @@ namespace Fantasy
|
||||
MessageObjectPool<SkillInfo>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public uint ConfigId { get; set; }
|
||||
public int ConfigId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public int Level { get; set; }
|
||||
[ProtoMember(3)]
|
||||
|
||||
@@ -61,29 +61,32 @@ namespace Fantasy
|
||||
public const uint S2C_DeleteMailResponse = 2415929119;
|
||||
public const uint S2C_HaveMail = 2147493663;
|
||||
public const uint S2C_MailState = 2147493664;
|
||||
public const uint C2S_CreateChannelRequest = 2281711392;
|
||||
public const uint S2C_CreateChannelResponse = 2415929120;
|
||||
public const uint C2S_JoinChannelRequest = 2281711393;
|
||||
public const uint S2C_JoinChannelResponse = 2415929121;
|
||||
public const uint C2S_SendMessageRequest = 2281711394;
|
||||
public const uint S2C_SendMessageResponse = 2415929122;
|
||||
public const uint S2C_Message = 2147493665;
|
||||
public const uint C2S_CreateClubRequest = 2281711395;
|
||||
public const uint S2C_CreateClubResponse = 2415929123;
|
||||
public const uint C2S_GetClubInfoRequest = 2281711396;
|
||||
public const uint S2C_GetClubInfoResponse = 2415929124;
|
||||
public const uint C2S_GetMemberListRequest = 2281711397;
|
||||
public const uint S2C_GetMemberListResponse = 2415929125;
|
||||
public const uint C2S_GetClubListRequest = 2281711398;
|
||||
public const uint S2C_GetClubListResponse = 2415929126;
|
||||
public const uint C2S_JoinClubRequest = 2281711399;
|
||||
public const uint S2C_JoinClubResponse = 2415929127;
|
||||
public const uint C2S_LeaveClubRequest = 2281711400;
|
||||
public const uint S2C_LeaveClubResponse = 2415929128;
|
||||
public const uint C2S_DissolveClubRequest = 2281711401;
|
||||
public const uint S2C_DissolveClubResponse = 2415929129;
|
||||
public const uint C2S_DisposeJoinRequest = 2281711402;
|
||||
public const uint S2C_DisposeJoinResponse = 2415929130;
|
||||
public const uint S2C_ClubChange = 2147493666;
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user