public virtual bool ReadConnectRequest(BitStream reader, ref string errorString) { reader.Read(out uint classGroup); reader.Read(out uint classCRC); if ((NetClassGroup)classGroup == GetNetClassGroup() && classCRC == NetClassRep.GetClassGroupCRC(GetNetClassGroup())) { return(true); } errorString = "CHR_INVALID"; return(false); }
public virtual void WriteConnectRequest(BitStream stream) { stream.Write((uint)GetNetClassGroup()); stream.Write(NetClassRep.GetClassGroupCRC(GetNetClassGroup())); }