public override void OnRecvPacket(GSPacketIn pkg) { if (this.m_packetProcessor == null) { this.m_packetLib = AbstractPacketLib.CreatePacketLibForVersion(1, this); this.m_packetProcessor = new PacketProcessor(this); } if (this.m_player != null) { pkg.ClientID = this.m_player.PlayerId; pkg.WriteHeader(); } pkg.ClearChecksum(); switch (pkg.Code) { case 254: this.HandleManagerCmd(pkg); break; case 255: this.HandleManagerLogin(pkg); break; default: this.m_packetProcessor.HandlePacket(pkg); break; } }