mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-14 15:34:37 +01:00
protocol handler system (modified SCHALE), dh attempt
This commit is contained in:
@@ -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(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user