mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-13 02:04:37 +01:00
second part of the previous commit
This commit is contained in:
@@ -490,7 +490,7 @@ namespace AscNet.GameServer.Handlers
|
||||
};
|
||||
session.SendPush(notifyTrialData);
|
||||
|
||||
|
||||
|
||||
|
||||
NotifyPivotCombatData notifyPivotCombatData = new()
|
||||
{
|
||||
|
||||
@@ -118,20 +118,28 @@ namespace AscNet.GameServer
|
||||
|
||||
public void SendPush<T>(T push)
|
||||
{
|
||||
Packet.Push packet = new()
|
||||
try
|
||||
{
|
||||
Name = typeof(T).Name,
|
||||
Content = MessagePackSerializer.Serialize(push)
|
||||
};
|
||||
Packet.Push packet = new()
|
||||
{
|
||||
Name = typeof(T).Name,
|
||||
Content = MessagePackSerializer.Serialize(push)
|
||||
};
|
||||
|
||||
Send(new Packet()
|
||||
Packet pushPacket = new Packet()
|
||||
{
|
||||
No = packetNo,
|
||||
Type = Packet.ContentType.Push,
|
||||
Content = MessagePackSerializer.Serialize(packet)
|
||||
};
|
||||
|
||||
Send(pushPacket);
|
||||
packetNo++;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
No = packetNo,
|
||||
Type = Packet.ContentType.Push,
|
||||
Content = MessagePackSerializer.Serialize(packet)
|
||||
});
|
||||
c.Log(packet.Name);
|
||||
packetNo++;
|
||||
c.Error(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public void SendResponse<T>(T response)
|
||||
|
||||
Reference in New Issue
Block a user