Class ExportedLot
An exported lot is all of the relevant data of a Lot that should be exported to a file when clicking the "Export" button in the build menu. To create an exported lot from a lot, use Export()
public class ExportedLot
- Inheritance
-
ExportedLot
- Inherited Members
- Extension Methods
Fields
Area
The area that this lot covers in the world
public Rectangle Area
Field Value
- Rectangle
ExportedVersion
The game version that this lot was exported with
public string ExportedVersion
Field Value
Furniture
The Furniture that is present on this lot
public List<Furniture> Furniture
Field Value
OtherFloorTiles
A set of tiles on additional floors beside the ground floor. Note that array entries may contain null tiles.
public Dictionary<int, Tile[,]> OtherFloorTiles
Field Value
- Dictionary<int, Tile[,]>
Roofs
The roofs that are present on this lot
public List<Roof> Roofs
Field Value
Stairs
The stairs that are present on this lot.
public List<Stairs> Stairs
Field Value
Tiles
The ground tiles of this lot
public Tile[,] Tiles
Field Value
- Tile[,]
Type
This lot's LotType
public LotType Type
Field Value
WallLikes
The walls that are present on this lot.
public List<WallLike> WallLikes
Field Value
Walls
The walls that are present on this lot
[Obsolete("Use the new WallLikes instead")]
public List<Wall> Walls
Field Value
Methods
GetCoveredArea()
Returns a MLEM.Maths.RectangleF that represents the area that this lot actually covers. The area covered by this lot is always bounded by its Area, but will be smaller if there are fewer objects on the lot.
public RectangleF GetCoveredArea()
Returns
- RectangleF
The area that this lot covers
GetPrice()
Returns this exported lot's current price, including the prices of all Furniture objects, WallLikes, Roofs and Tiles.
public float GetPrice()
Returns
- float
This exported lot's total price.
ValidateForPreview(Map)
Validates this exported lot's content for preview purposes, for example for use with the CreateLotPreview(Map, string, Point, float, Color, bool, Func<string, ExportedLot>) method.
public void ValidateForPreview(Map map)
Parameters
map
MapThe map to validate this exported lot for.