Beispiel #1
0
 public PacketInformation GetPacketInformation(ServerPacketHeader serverPacketHeader)
 {
     if (!packetInformationDict.ContainsKey(serverPacketHeader))
     {
         throw new Exception("Unknown packet recieved");
     }
     return(packetInformationDict[serverPacketHeader]);
 }
        private PacketInformation GetPacketInformation(ServerPacketHeader serverPacketHeader)
        {
            PacketInformation packetInformation = null;

            try
            {
                packetInformation = packetParser.GetPacketInformation(serverPacketHeader);
            }
            catch
            {
                lock (Logger.LastLogs)
                {
                    foreach (String lastLogs in Logger.LastLogs)
                    {
                        Console.WriteLine(lastLogs);
                    }
                }
            }
            return(packetInformation);
        }
Beispiel #3
0
 public GamePacketAttribute(ServerPacketHeader packetHeader)
 {
     this.PacketHeader = packetHeader;
 }
Beispiel #4
0
 public PacketInformation(ServerPacketHeader packetHeader)
 {
     this.PacketHeader = packetHeader;
 }