快速使用协议
This commit is contained in:
@@ -58,6 +58,7 @@ namespace Fantasy
|
||||
ErrorCode = default;
|
||||
Items.Clear();
|
||||
Rigs.Clear();
|
||||
Slots.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_GetItemsResponse>(this);
|
||||
#endif
|
||||
@@ -68,6 +69,8 @@ namespace Fantasy
|
||||
[ProtoMember(2)]
|
||||
public List<ItemBindInfo> Rigs = new List<ItemBindInfo>();
|
||||
[ProtoMember(3)]
|
||||
public List<long> Slots = new List<long>();
|
||||
[ProtoMember(4)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
@@ -204,6 +207,61 @@ namespace Fantasy
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// /////////// ******** 快速使用插槽 *******/////////////
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// 请求设置快速使用
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Game_SetSlotRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Game_SetSlotRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Game_SetSlotRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Index = default;
|
||||
Id = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Game_SetSlotRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Game2C_SetSlotResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Game_SetSlotRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public int Index { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求设置快速使用响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_SetSlotResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Game2C_SetSlotResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_SetSlotResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Slots.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_SetSlotResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_SetSlotResponse; }
|
||||
[ProtoMember(1)]
|
||||
public List<long> Slots = new List<long>();
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// /////////// ******** 鱼护 *******/////////////
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
|
||||
@@ -9,15 +9,17 @@ namespace Fantasy
|
||||
public const uint Game2C_ItemChange = 2147493649;
|
||||
public const uint C2Game_RigChangeRequest = 2281711379;
|
||||
public const uint Game2C_RigChangeResponse = 2415929107;
|
||||
public const uint C2Game_GetFishsRequest = 2281711380;
|
||||
public const uint Game2C_GetFishsResponse = 2415929108;
|
||||
public const uint C2Game_SetSlotRequest = 2281711380;
|
||||
public const uint Game2C_SetSlotResponse = 2415929108;
|
||||
public const uint C2Game_GetFishsRequest = 2281711381;
|
||||
public const uint Game2C_GetFishsResponse = 2415929109;
|
||||
public const uint Game2C_FishChange = 2147493650;
|
||||
public const uint C2Game_SellFishRequest = 2281711381;
|
||||
public const uint Game2C_SellFishResponse = 2415929109;
|
||||
public const uint C2Game_BuyRequest = 2281711382;
|
||||
public const uint Game2C_BuyResponse = 2415929110;
|
||||
public const uint C2Map_CreateRoomRequest = 2281711383;
|
||||
public const uint Map2C_CreateRoomResponse = 2415929111;
|
||||
public const uint C2Game_SellFishRequest = 2281711382;
|
||||
public const uint Game2C_SellFishResponse = 2415929110;
|
||||
public const uint C2Game_BuyRequest = 2281711383;
|
||||
public const uint Game2C_BuyResponse = 2415929111;
|
||||
public const uint C2Map_CreateRoomRequest = 2281711384;
|
||||
public const uint Map2C_CreateRoomResponse = 2415929112;
|
||||
public const uint C2G_ExitRoomRequest = 268445457;
|
||||
public const uint G2C_ExitRoomResponse = 402663185;
|
||||
public const uint C2G_EnterMapRequest = 268445458;
|
||||
@@ -28,8 +30,8 @@ namespace Fantasy
|
||||
public const uint C2G_LoginRequest = 268445460;
|
||||
public const uint G2C_LoginResponse = 402663188;
|
||||
public const uint G2C_RepeatLogin = 134227729;
|
||||
public const uint C2Game_GetRoleInfoRequest = 2281711384;
|
||||
public const uint Game2C_GetRoleInfoResponse = 2415929112;
|
||||
public const uint C2Game_GetRoleInfoRequest = 2281711385;
|
||||
public const uint Game2C_GetRoleInfoResponse = 2415929113;
|
||||
public const uint Map2C_RoleEnterRoomNotify = 2147493652;
|
||||
public const uint Map2C_RoleExitRoomNotify = 2147493653;
|
||||
public const uint C2Map_RolePropertyChange = 2147493654;
|
||||
@@ -40,37 +42,37 @@ namespace Fantasy
|
||||
public const uint C2Map_Look = 2147493659;
|
||||
public const uint Map2C_MoveNotify = 2147493660;
|
||||
public const uint Map2C_LookeNotify = 2147493661;
|
||||
public const uint C2S_GetConversationsRequest = 2281711385;
|
||||
public const uint S2C_GetConversationsResponse = 2415929113;
|
||||
public const uint C2S_SendMailRequest = 2281711386;
|
||||
public const uint S2C_SendMailResponse = 2415929114;
|
||||
public const uint C2S_DeleteMailRequest = 2281711387;
|
||||
public const uint S2C_DeleteMailResponse = 2415929115;
|
||||
public const uint C2S_GetConversationsRequest = 2281711386;
|
||||
public const uint S2C_GetConversationsResponse = 2415929114;
|
||||
public const uint C2S_SendMailRequest = 2281711387;
|
||||
public const uint S2C_SendMailResponse = 2415929115;
|
||||
public const uint C2S_DeleteMailRequest = 2281711388;
|
||||
public const uint S2C_DeleteMailResponse = 2415929116;
|
||||
public const uint S2C_HaveMail = 2147493662;
|
||||
public const uint S2C_MailState = 2147493663;
|
||||
public const uint C2S_CreateChannelRequest = 2281711388;
|
||||
public const uint S2C_CreateChannelResponse = 2415929116;
|
||||
public const uint C2S_JoinChannelRequest = 2281711389;
|
||||
public const uint S2C_JoinChannelResponse = 2415929117;
|
||||
public const uint C2S_SendMessageRequest = 2281711390;
|
||||
public const uint S2C_SendMessageResponse = 2415929118;
|
||||
public const uint C2S_CreateChannelRequest = 2281711389;
|
||||
public const uint S2C_CreateChannelResponse = 2415929117;
|
||||
public const uint C2S_JoinChannelRequest = 2281711390;
|
||||
public const uint S2C_JoinChannelResponse = 2415929118;
|
||||
public const uint C2S_SendMessageRequest = 2281711391;
|
||||
public const uint S2C_SendMessageResponse = 2415929119;
|
||||
public const uint S2C_Message = 2147493664;
|
||||
public const uint C2S_CreateClubRequest = 2281711391;
|
||||
public const uint S2C_CreateClubResponse = 2415929119;
|
||||
public const uint C2S_GetClubInfoRequest = 2281711392;
|
||||
public const uint S2C_GetClubInfoResponse = 2415929120;
|
||||
public const uint C2S_GetMemberListRequest = 2281711393;
|
||||
public const uint S2C_GetMemberListResponse = 2415929121;
|
||||
public const uint C2S_GetClubListRequest = 2281711394;
|
||||
public const uint S2C_GetClubListResponse = 2415929122;
|
||||
public const uint C2S_JoinClubRequest = 2281711395;
|
||||
public const uint S2C_JoinClubResponse = 2415929123;
|
||||
public const uint C2S_LeaveClubRequest = 2281711396;
|
||||
public const uint S2C_LeaveClubResponse = 2415929124;
|
||||
public const uint C2S_DissolveClubRequest = 2281711397;
|
||||
public const uint S2C_DissolveClubResponse = 2415929125;
|
||||
public const uint C2S_DisposeJoinRequest = 2281711398;
|
||||
public const uint S2C_DisposeJoinResponse = 2415929126;
|
||||
public const uint C2S_CreateClubRequest = 2281711392;
|
||||
public const uint S2C_CreateClubResponse = 2415929120;
|
||||
public const uint C2S_GetClubInfoRequest = 2281711393;
|
||||
public const uint S2C_GetClubInfoResponse = 2415929121;
|
||||
public const uint C2S_GetMemberListRequest = 2281711394;
|
||||
public const uint S2C_GetMemberListResponse = 2415929122;
|
||||
public const uint C2S_GetClubListRequest = 2281711395;
|
||||
public const uint S2C_GetClubListResponse = 2415929123;
|
||||
public const uint C2S_JoinClubRequest = 2281711396;
|
||||
public const uint S2C_JoinClubResponse = 2415929124;
|
||||
public const uint C2S_LeaveClubRequest = 2281711397;
|
||||
public const uint S2C_LeaveClubResponse = 2415929125;
|
||||
public const uint C2S_DissolveClubRequest = 2281711398;
|
||||
public const uint S2C_DissolveClubResponse = 2415929126;
|
||||
public const uint C2S_DisposeJoinRequest = 2281711399;
|
||||
public const uint S2C_DisposeJoinResponse = 2415929127;
|
||||
public const uint S2C_ClubChange = 2147493665;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user