public ServerIncomingPacket(byte[] bytes) : base(bytes) { if (ServerOpcodeCheck.isOpCode(base.packetID)) { this.mOpcode = (ServerOpCode)base.packetID; } else { throw new PacketMalformedException("Was not an serveropcode! [" + base.packetID + "].", this); } }
public ServerIncomingPacket(byte[] bytes) : base(bytes) { if (ServerOpcodeCheck.isOpCode(base.packetID)) { this.mOpcode = (ServerOpCode)base.packetID; } else { throw new PacketMalformedException("Was not an serveropcode! [" + base.packetID +"].", this); } }
public AbstractNoDataPacket(ServerOpCode code) { this.packet = new ClientOutgoingPacket(code); }
public ClientOutgoingPacket(ServerOpCode opcode) : base((short)opcode) { this.mOpcode = opcode; }