protocol handler system (modified SCHALE), dh attempt

This commit is contained in:
raphaeIl
2025-01-11 23:21:17 -05:00
parent 195171b8df
commit 730fff1545
8 changed files with 2038 additions and 85 deletions

View File

@@ -1,4 +1,5 @@
using System;
using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -15,6 +16,15 @@ namespace Novaria.Common.Core
public Action<Packet, object> callback;
public short receiveMsgId;
public static Packet Create(NetMsgId msgId, IMessage protoPacket)
{
return new Packet()
{
msgId = (short)msgId,
msgBody = protoPacket.ToByteArray(),
};
}
}
}