コード例 #1
0
        public void BinRead(BinaryReader reader, int verNo)
        {
            int n         = reader.ReadByte();
            int classId   = n >> 5;
            int roundFlag = n >> 4 & 0x1;

            if (roundFlag > 0)
            {
                this.Round = (n & 0x0f) << 8 | reader.ReadByte();
            }
            this.StateData = CreatePlayerProcess(verNo, classId);
            if (null == StateData)
            {
                return;
            }
            StateData.BinRead(reader, verNo);
        }