stage reboot
This commit is contained in:
parent
80c5e1cc95
commit
d84543004e
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue