コード例 #1
0
        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);
        }
コード例 #2
0
 public virtual void WriteConnectRequest(BitStream stream)
 {
     stream.Write((uint)GetNetClassGroup());
     stream.Write(NetClassRep.GetClassGroupCRC(GetNetClassGroup()));
 }