提交修改
This commit is contained in:
@@ -25,6 +25,7 @@ public sealed partial class Fish : Luban.BeanBase
|
||||
MinWeight = (int)_obj.GetValue("min_weight");
|
||||
MaxWeight = (int)_obj.GetValue("max_weight");
|
||||
Accept = (int)_obj.GetValue("accept");
|
||||
Water = (int)_obj.GetValue("water");
|
||||
}
|
||||
|
||||
public static Fish DeserializeFish(JToken _buf)
|
||||
@@ -52,6 +53,10 @@ public sealed partial class Fish : Luban.BeanBase
|
||||
/// 接受的鱼饵配置组
|
||||
/// </summary>
|
||||
public readonly int Accept;
|
||||
/// <summary>
|
||||
/// 需要的水
|
||||
/// </summary>
|
||||
public readonly int Water;
|
||||
|
||||
|
||||
public const int __ID__ = 2189944;
|
||||
@@ -69,6 +74,7 @@ public sealed partial class Fish : Luban.BeanBase
|
||||
+ "minWeight:" + MinWeight + ","
|
||||
+ "maxWeight:" + MaxWeight + ","
|
||||
+ "accept:" + Accept + ","
|
||||
+ "water:" + Water + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ public sealed partial class Item : Luban.BeanBase
|
||||
Length = (int)_obj.GetValue("length");
|
||||
Max = (int)_obj.GetValue("max");
|
||||
AutoUse = (int)_obj.GetValue("auto_use");
|
||||
Effect = (int)_obj.GetValue("effect");
|
||||
{ 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); } }
|
||||
}
|
||||
@@ -70,6 +71,10 @@ public sealed partial class Item : Luban.BeanBase
|
||||
/// </summary>
|
||||
public readonly int AutoUse;
|
||||
/// <summary>
|
||||
/// 使用效果
|
||||
/// </summary>
|
||||
public readonly int Effect;
|
||||
/// <summary>
|
||||
/// 使用参数1
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.List<int> Result1;
|
||||
@@ -97,6 +102,7 @@ public sealed partial class Item : Luban.BeanBase
|
||||
+ "length:" + Length + ","
|
||||
+ "max:" + Max + ","
|
||||
+ "autoUse:" + AutoUse + ","
|
||||
+ "effect:" + Effect + ","
|
||||
+ "result1:" + Luban.StringUtil.CollectionToString(Result1) + ","
|
||||
+ "result2:" + Luban.StringUtil.CollectionToString(Result2) + ","
|
||||
+ "}";
|
||||
|
||||
64
Entity/Generate/ConfigTable/Leader.cs
Normal file
64
Entity/Generate/ConfigTable/Leader.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 Leader : Luban.BeanBase
|
||||
{
|
||||
public Leader(JToken _buf)
|
||||
{
|
||||
JObject _obj = _buf as JObject;
|
||||
Id = (int)_obj.GetValue("id");
|
||||
Strength = (int)_obj.GetValue("strength");
|
||||
Size = (int)_obj.GetValue("size");
|
||||
}
|
||||
|
||||
public static Leader DeserializeLeader(JToken _buf)
|
||||
{
|
||||
return new Leader(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 强度
|
||||
/// </summary>
|
||||
public readonly int Strength;
|
||||
/// <summary>
|
||||
/// 尺寸
|
||||
/// </summary>
|
||||
public readonly int Size;
|
||||
|
||||
|
||||
public const int __ID__ = -2022887127;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "strength:" + Strength + ","
|
||||
+ "size:" + Size + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,10 @@ public partial class Tables
|
||||
/// </summary>
|
||||
public TbItem TbItem {get; }
|
||||
/// <summary>
|
||||
/// 引线
|
||||
/// </summary>
|
||||
public TbLeader TbLeader {get; }
|
||||
/// <summary>
|
||||
/// 鱼线
|
||||
/// </summary>
|
||||
public TbLine TbLine {get; }
|
||||
@@ -82,6 +86,7 @@ public partial class Tables
|
||||
TbHook = new TbHook(loader("tbhook"));
|
||||
TbInitItemConfig = new TbInitItemConfig(loader("tbinititemconfig"));
|
||||
TbItem = new TbItem(loader("tbitem"));
|
||||
TbLeader = new TbLeader(loader("tbleader"));
|
||||
TbLine = new TbLine(loader("tbline"));
|
||||
TbLure = new TbLure(loader("tblure"));
|
||||
TbReel = new TbReel(loader("tbreel"));
|
||||
@@ -101,6 +106,7 @@ public partial class Tables
|
||||
TbHook.ResolveRef(this);
|
||||
TbInitItemConfig.ResolveRef(this);
|
||||
TbItem.ResolveRef(this);
|
||||
TbLeader.ResolveRef(this);
|
||||
TbLine.ResolveRef(this);
|
||||
TbLure.ResolveRef(this);
|
||||
TbReel.ResolveRef(this);
|
||||
|
||||
58
Entity/Generate/ConfigTable/TbLeader.cs
Normal file
58
Entity/Generate/ConfigTable/TbLeader.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 TbLeader
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, Leader> _dataMap;
|
||||
private readonly System.Collections.Generic.List<Leader> _dataList;
|
||||
|
||||
public TbLeader(JArray _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Leader>(_buf.Count);
|
||||
_dataList = new System.Collections.Generic.List<Leader>(_buf.Count);
|
||||
|
||||
foreach(JObject _ele in _buf)
|
||||
{
|
||||
Leader _v;
|
||||
_v = global::cfg.Leader.DeserializeLeader(_ele);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, Leader> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<Leader> DataList => _dataList;
|
||||
|
||||
public Leader GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : default;
|
||||
public Leader Get(int key) => _dataMap[key];
|
||||
public Leader this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -678,4 +678,89 @@ namespace Fantasy
|
||||
[ProtoMember(1)]
|
||||
public ChatInfoTree ChatInfoTree { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 其他服务器发送邮件
|
||||
/// </summary>
|
||||
////////// ******** 邮件 *******/////////////
|
||||
public partial class Other2Mail_SendMailRequest : AMessage, IAddressRequest
|
||||
{
|
||||
public static Other2Mail_SendMailRequest Create(bool autoReturn = true)
|
||||
{
|
||||
var other2Mail_SendMailRequest = MessageObjectPool<Other2Mail_SendMailRequest>.Rent();
|
||||
other2Mail_SendMailRequest.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
other2Mail_SendMailRequest.SetIsPool(false);
|
||||
}
|
||||
|
||||
return other2Mail_SendMailRequest;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
MailBox = default;
|
||||
MessageObjectPool<Other2Mail_SendMailRequest>.Return(this);
|
||||
}
|
||||
public uint OpCode() { return InnerOpcode.Other2Mail_SendMailRequest; }
|
||||
[BsonIgnore]
|
||||
public Mail2Other_SendMailResponse ResponseType { get; set; }
|
||||
public MailBox MailBox { get; set; }
|
||||
}
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class Mail2Other_SendMailResponse : AMessage, IAddressResponse
|
||||
{
|
||||
public static Mail2Other_SendMailResponse Create(bool autoReturn = true)
|
||||
{
|
||||
var mail2Other_SendMailResponse = MessageObjectPool<Mail2Other_SendMailResponse>.Rent();
|
||||
mail2Other_SendMailResponse.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
mail2Other_SendMailResponse.SetIsPool(false);
|
||||
}
|
||||
|
||||
return mail2Other_SendMailResponse;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
ErrorCode = 0;
|
||||
MessageObjectPool<Mail2Other_SendMailResponse>.Return(this);
|
||||
}
|
||||
public uint OpCode() { return InnerOpcode.Mail2Other_SendMailResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -20,5 +20,7 @@ namespace Fantasy
|
||||
public const uint Map2G_ExiRoomResponse = 1207969557;
|
||||
public const uint Chat2G_ChatMessage = 939534099;
|
||||
public const uint Other2Chat_ChatMessage = 939534100;
|
||||
public const uint Other2Mail_SendMailRequest = 1082140438;
|
||||
public const uint Mail2Other_SendMailResponse = 1207969558;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -27,63 +27,69 @@ namespace Fantasy
|
||||
public const uint Game2C_RewardNotify = 2147493651;
|
||||
public const uint C2Game_GMRequest = 2281711385;
|
||||
public const uint Game2C_GMResponse = 2415929113;
|
||||
public const uint C2Game_CreateRoomRequest = 2281711386;
|
||||
public const uint Game2C_CreateRoomResponse = 2415929114;
|
||||
public const uint C2Mail_TestRequest = 2281711386;
|
||||
public const uint Mail2C_TestResponse = 2415929114;
|
||||
public const uint Mail2C_HaveMail = 2147493652;
|
||||
public const uint Mail2C_MailState = 2147493653;
|
||||
public const uint C2Mail_GetHaveMailRequest = 2281711387;
|
||||
public const uint Mail2C_GetHaveMailResposne = 2415929115;
|
||||
public const uint C2Mail_OpenMailRequest = 2281711388;
|
||||
public const uint Mail2C_OpenMailResposne = 2415929116;
|
||||
public const uint C2Mail_ReceiveMailRequest = 2281711389;
|
||||
public const uint Mail2C_ReceiveMailResponse = 2415929117;
|
||||
public const uint C2Mail_RemoveMailRequest = 2281711390;
|
||||
public const uint Mail2C_RemoveMailResponse = 2415929118;
|
||||
public const uint C2Mail_SendMailRequest = 2281711391;
|
||||
public const uint Mail2C_SendMailResponse = 2415929119;
|
||||
public const uint C2Game_CreateRoomRequest = 2281711392;
|
||||
public const uint Game2C_CreateRoomResponse = 2415929120;
|
||||
public const uint C2G_ExitRoomRequest = 268445457;
|
||||
public const uint G2C_ExitRoomResponse = 402663185;
|
||||
public const uint C2G_EnterMapRequest = 268445458;
|
||||
public const uint G2C_EnterMapResponse = 402663186;
|
||||
public const uint Game2C_ChangeMap = 2147493652;
|
||||
public const uint Game2C_ChangeMap = 2147493654;
|
||||
public const uint C2A_LoginRequest = 268445459;
|
||||
public const uint A2C_LoginResponse = 402663187;
|
||||
public const uint C2G_LoginRequest = 268445460;
|
||||
public const uint G2C_LoginResponse = 402663188;
|
||||
public const uint G2C_RepeatLogin = 134227729;
|
||||
public const uint C2Game_GetRoleInfoRequest = 2281711387;
|
||||
public const uint Game2C_GetRoleInfoResponse = 2415929115;
|
||||
public const uint Game2C_RoleEnterRoomNotify = 2147493653;
|
||||
public const uint Game2C_RoleExitRoomNotify = 2147493654;
|
||||
public const uint C2Game_TakeItemRequest = 2281711388;
|
||||
public const uint Game2C_TakeItemResponse = 2415929116;
|
||||
public const uint C2Game_RolePropertyChange = 2147493655;
|
||||
public const uint Game2C_RoleStateNotify = 2147493656;
|
||||
public const uint Game2C_RoleGearChangeNotify = 2147493657;
|
||||
public const uint Game2C_RolePropertyChangeNotify = 2147493658;
|
||||
public const uint C2Game_Move = 2147493659;
|
||||
public const uint C2Game_Look = 2147493660;
|
||||
public const uint Game2C_MoveNotify = 2147493661;
|
||||
public const uint Game2C_LookeNotify = 2147493662;
|
||||
public const uint C2Game_GetConversationsRequest = 2281711389;
|
||||
public const uint Game2C_GetConversationsResponse = 2415929117;
|
||||
public const uint C2Game_SendMailRequest = 2281711390;
|
||||
public const uint Game2C_SendMailResponse = 2415929118;
|
||||
public const uint C2Game_DeleteMailRequest = 2281711391;
|
||||
public const uint Game2C_DeleteMailResponse = 2415929119;
|
||||
public const uint Game2C_HaveMail = 2147493663;
|
||||
public const uint Game2C_MailState = 2147493664;
|
||||
public const uint C2Game_SendMessageRequest = 2281711392;
|
||||
public const uint Game2C_SendMessageResponse = 2415929120;
|
||||
public const uint C2Game_GetRoleInfoRequest = 2281711393;
|
||||
public const uint Game2C_GetRoleInfoResponse = 2415929121;
|
||||
public const uint Game2C_RoleEnterRoomNotify = 2147493655;
|
||||
public const uint Game2C_RoleExitRoomNotify = 2147493656;
|
||||
public const uint C2Game_TakeItemRequest = 2281711394;
|
||||
public const uint Game2C_TakeItemResponse = 2415929122;
|
||||
public const uint C2Game_RolePropertyChange = 2147493657;
|
||||
public const uint Game2C_RoleStateNotify = 2147493658;
|
||||
public const uint Game2C_RoleGearChangeNotify = 2147493659;
|
||||
public const uint Game2C_RolePropertyChangeNotify = 2147493660;
|
||||
public const uint C2Game_Move = 2147493661;
|
||||
public const uint C2Game_Look = 2147493662;
|
||||
public const uint Game2C_MoveNotify = 2147493663;
|
||||
public const uint Game2C_LookeNotify = 2147493664;
|
||||
public const uint C2Game_SendMessageRequest = 2281711395;
|
||||
public const uint Game2C_SendMessageResponse = 2415929123;
|
||||
public const uint Game2C_Message = 2147493665;
|
||||
public const uint C2Game_CreateChannelRequest = 2281711393;
|
||||
public const uint Game2C_CreateChannelResponse = 2415929121;
|
||||
public const uint C2Game_JoinChannelRequest = 2281711394;
|
||||
public const uint Game2C_JoinChannelResponse = 2415929122;
|
||||
public const uint C2Game_CreateClubRequest = 2281711395;
|
||||
public const uint Game2C_CreateClubResponse = 2415929123;
|
||||
public const uint C2Game_GetClubInfoRequest = 2281711396;
|
||||
public const uint Game2C_GetClubInfoResponse = 2415929124;
|
||||
public const uint C2Game_GetMemberListRequest = 2281711397;
|
||||
public const uint Game2C_GetMemberListResponse = 2415929125;
|
||||
public const uint C2Game_GetClubListRequest = 2281711398;
|
||||
public const uint Game2C_GetClubListResponse = 2415929126;
|
||||
public const uint C2Game_JoinClubRequest = 2281711399;
|
||||
public const uint Game2C_JoinClubResponse = 2415929127;
|
||||
public const uint C2Game_LeaveClubRequest = 2281711400;
|
||||
public const uint Game2C_LeaveClubResponse = 2415929128;
|
||||
public const uint C2Game_DissolveClubRequest = 2281711401;
|
||||
public const uint Game2C_DissolveClubResponse = 2415929129;
|
||||
public const uint C2Game_DisposeJoinRequest = 2281711402;
|
||||
public const uint Game2C_DisposeJoinResponse = 2415929130;
|
||||
public const uint C2Game_CreateChannelRequest = 2281711396;
|
||||
public const uint Game2C_CreateChannelResponse = 2415929124;
|
||||
public const uint C2Game_JoinChannelRequest = 2281711397;
|
||||
public const uint Game2C_JoinChannelResponse = 2415929125;
|
||||
public const uint C2Game_CreateClubRequest = 2281711398;
|
||||
public const uint Game2C_CreateClubResponse = 2415929126;
|
||||
public const uint C2Game_GetClubInfoRequest = 2281711399;
|
||||
public const uint Game2C_GetClubInfoResponse = 2415929127;
|
||||
public const uint C2Game_GetMemberListRequest = 2281711400;
|
||||
public const uint Game2C_GetMemberListResponse = 2415929128;
|
||||
public const uint C2Game_GetClubListRequest = 2281711401;
|
||||
public const uint Game2C_GetClubListResponse = 2415929129;
|
||||
public const uint C2Game_JoinClubRequest = 2281711402;
|
||||
public const uint Game2C_JoinClubResponse = 2415929130;
|
||||
public const uint C2Game_LeaveClubRequest = 2281711403;
|
||||
public const uint Game2C_LeaveClubResponse = 2415929131;
|
||||
public const uint C2Game_DissolveClubRequest = 2281711404;
|
||||
public const uint Game2C_DissolveClubResponse = 2415929132;
|
||||
public const uint C2Game_DisposeJoinRequest = 2281711405;
|
||||
public const uint Game2C_DisposeJoinResponse = 2415929133;
|
||||
public const uint Game2C_ClubChange = 2147493666;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user