예제 #1
0
        public override void Stream(ref Point point)
        {
            byte positionIndex = mBitStream.ReadByte(SaveUtils.GetNumBitsToStoreValue(Game.numRoomColumns * Game.numRoomRows - 1));

            point.mRow    = positionIndex / Game.numRoomColumns;
            point.mColumn = positionIndex % Game.numRoomColumns;
        }
예제 #2
0
        public override void Stream(ref Point point)
        {
            byte positionIndex = (byte)(point.mRow * Game.numRoomColumns + point.mColumn);

            mBitStream.WriteByte(positionIndex, SaveUtils.GetNumBitsToStoreValue(Game.numRoomColumns * Game.numRoomRows - 1));
        }