public static void RoutePacket(InjuryMod mymod, BinaryReader reader)
        {
            InjuryNetProtocolTypes protocol = (InjuryNetProtocolTypes)reader.ReadByte();

            switch (protocol)
            {
            default:
                LogHelpers.Log("Invalid packet protocol: " + protocol);
                break;
            }
        }
예제 #2
0
        public static void RoutePacket(InjuryMod mymod, BinaryReader reader, int playerWho)
        {
            InjuryNetProtocolTypes protocol = (InjuryNetProtocolTypes)reader.ReadByte();

            switch (protocol)
            {
            case InjuryNetProtocolTypes.NpcSpawnRequest:
                ServerPacketHandlers.ReceiveNpcSpawnRequest(mymod, reader, playerWho);
                break;

            default:
                LogHelpers.Log("Invalid packet protocol: " + protocol);
                break;
            }
        }