forked from PGR/ascnet
1
0
Fork 0

one more thing

This commit is contained in:
rfi 2023-10-14 20:07:07 +07:00
parent c09f868d28
commit fbf0a6d3ba
1 changed files with 3 additions and 3 deletions

View File

@ -122,11 +122,11 @@ namespace AscNet.GameServer
DisconnectProtocol();
}
public void SendPush<T>(string name, T push)
public void SendPush<T>(T push)
{
Packet.Push packet = new()
{
Name = name,
Name = typeof(T).Name,
Content = MessagePackSerializer.Serialize(push)
};
Send(new Packet()
@ -159,7 +159,7 @@ namespace AscNet.GameServer
Packet.Response packet = new()
{
Id = clientSeq,
Name = response!.GetType().Name,
Name = typeof(T).Name,
Content = MessagePackSerializer.Serialize(response)
};
Send(new Packet()