forked from PGR/ascnet
1
0
Fork 0

stage reboot

This commit is contained in:
rfi 2023-12-12 10:45:17 +07:00
parent 80c5e1cc95
commit d84543004e
1 changed files with 20 additions and 0 deletions

View File

@ -131,6 +131,19 @@ namespace AscNet.GameServer.Handlers
{ {
public FightSettleResult Result { get; set; } public FightSettleResult Result { get; set; }
} }
[MessagePackObject(true)]
public class FightRebootRequest
{
public int FightId { get; set; }
public int RebootCount { get; set; }
}
[MessagePackObject(true)]
public class FightRebootResponse
{
public int Code { get; set; }
}
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. #pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
#endregion #endregion
@ -258,6 +271,13 @@ namespace AscNet.GameServer.Handlers
session.SendResponse(rsp, packet.Id); session.SendResponse(rsp, packet.Id);
} }
[RequestPacketHandler("FightRebootRequest")]
public static void HandleFightRebootRequestHandler(Session session, Packet.Request packet)
{
FightRebootRequest req = MessagePackSerializer.Deserialize<FightRebootRequest>(packet.Content);
session.SendResponse(new FightRebootResponse(), packet.Id);
}
[RequestPacketHandler("TeamSetTeamRequest")] [RequestPacketHandler("TeamSetTeamRequest")]
public static void HandleTeamSetTeamRequestHandler(Session session, Packet.Request packet) public static void HandleTeamSetTeamRequestHandler(Session session, Packet.Request packet)
{ {