public virtual void WritePacket(ref RawPacket data) { data.Write(Id); if (IsReliable) data.Write(Seq); }
public bool SendToServer(RawPacket packet) { return(SendRawPacketInternal(packet, _serverSendBuffer, _serverSocket, _serverEncryption, true)); }
public virtual void ReadPacket(ref RawPacket data) { if (IsReliable) Seq = data.ReadInt64(); }
public bool SendToClient(RawPacket packet) { return(SendRawPacketInternal(packet, _clientSendBuffer, _clientSocket, _clientEncryption, false)); }