mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-13 15:54:38 +01:00
upgrade skill (not throughly tested because the lack of other implementation)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System.Reflection;
|
||||
using System.Net.Sockets;
|
||||
using System.Reflection;
|
||||
using AscNet.Common.MsgPack;
|
||||
using AscNet.Logging;
|
||||
using MessagePack;
|
||||
|
||||
@@ -36,6 +38,11 @@ namespace AscNet.GameServer
|
||||
|
||||
[Key(2)]
|
||||
public byte[] Content;
|
||||
|
||||
public T Deserialize<T>()
|
||||
{
|
||||
return MessagePackSerializer.Deserialize<T>(Content);
|
||||
}
|
||||
}
|
||||
|
||||
[MessagePackObject(false)]
|
||||
|
||||
Reference in New Issue
Block a user