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; }
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)); }