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/NestedTypeManager.cs
Normal file
12
PacketLib/NestedTypeManager.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using LiteNetLib.Utils;
|
||||
|
||||
namespace PacketLib;
|
||||
|
||||
public static class NestedTypeManager {
|
||||
public static void AutoRegister(NetPacketProcessor processor) {
|
||||
processor.RegisterNestedType<PlayerState>();
|
||||
processor.RegisterNestedType<GameEvent>();
|
||||
processor.RegisterNestedType<EventQueue>();
|
||||
processor.RegisterNestedType<PlayerCommand>();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue