OneNightDuel/PacketLib/NestedTypeManager.cs

12 lines
377 B
C#
Raw Normal View History

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>();
}
}