forked from PGR/ascnet
sorry moonlight team
This commit is contained in:
commit
c09f868d28
|
@ -122,11 +122,11 @@ namespace AscNet.GameServer
|
||||||
DisconnectProtocol();
|
DisconnectProtocol();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendPush<T>(T push)
|
public void SendPush<T>(string name, T push)
|
||||||
{
|
{
|
||||||
Packet.Push packet = new()
|
Packet.Push packet = new()
|
||||||
{
|
{
|
||||||
Name = typeof(T).Name,
|
Name = name,
|
||||||
Content = MessagePackSerializer.Serialize(push)
|
Content = MessagePackSerializer.Serialize(push)
|
||||||
};
|
};
|
||||||
Send(new Packet()
|
Send(new Packet()
|
||||||
|
|
Loading…
Reference in New Issue