コード例 #1
0
        public bool Read(Protocol.StreamReader reader)
        {
            bool result = true;

            do
            {
                uint id = 0;
                result &= reader.Read(ref id);
                if (!result || id != ID)
                {
                    break;
                }
                result &= reader.Read(ref result);
                if (!result)
                {
                    break;
                }
                result &= reader.Read(ref playerCount);
                if (!result)
                {
                    break;
                }
                result &= reader.Read(ref listID);
                if (!result)
                {
                    break;
                }
                result &= reader.Read(ref playerCSN);
                if (!result)
                {
                    break;
                }
                result &= reader.Read(ref playerGSN);
                if (!result)
                {
                    break;
                }
                result &= reader.Read(ref nickName);
                if (!result)
                {
                    break;
                }
                result &= reader.Read(ref publicIP);
                if (!result)
                {
                    break;
                }
            } while (false);
            return(result);
        }
コード例 #2
0
        public bool Read(Protocol.StreamReader reader)
        {
            bool result = true;

            do
            {
                uint id = 0;
                result &= reader.Read(ref id);
                if (!result || id != ID)
                {
                    break;
                }
                result &= reader.Read(ref roomtype);
                if (!result)
                {
                    break;
                }
            } while (false);
            return(result);
        }