private void SetupDecoder()
        {
            Decoder.RegisterClientPacketTypesFromCallingAssembly();
            Console.WriteLine("Registered " + Decoder.RegisteredTypeCount + " client packet types");

            Decoder.InitializePacketIdMaps(typeof(ClientPacketId).GetFields());

            Decoder.CreatePacketActions();
            if (!Decoder.TryGetPacketIdDefinition(ClientPacketId.LegacyServerListPing, out var definition))
            {
                throw new InvalidOperationException(
                          $"Missing packet definition for \"{nameof(ClientPacketId.LegacyServerListPing)}\".");
            }
            LegacyServerListPingPacketDefinition = definition;
        }