Funkční komunikace mezi jedním clientem a serverem
This commit is contained in:
commit
3f235f6e04
44 changed files with 1030 additions and 0 deletions
12
PacketLib/NetDataWriterExtensions.cs
Normal file
12
PacketLib/NetDataWriterExtensions.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using System.Xml;
|
||||
using LiteNetLib.Utils;
|
||||
|
||||
namespace PacketLib;
|
||||
|
||||
public static class NetDataWriterExtensions {
|
||||
public static GameEvent GetGameEvent(this NetDataReader reader) {
|
||||
GameEvent gevent = new();
|
||||
gevent.Deserialize(reader);
|
||||
return gevent;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue