Table of Contents

Class ExportedLot

Namespace
TinyLife.World
Assembly
Tiny Life.dll

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()

[DataContract]
public class ExportedLot
Inheritance
ExportedLot
Inherited Members
Extension Methods

Fields

AppliedMigrations

The set of names of the Migration instances that have already been applied to objects in this exported lot. When a new exported lot is created, this collection is initialized with all migrations that exist, as new objects are expected to not need migration.

[JsonProperty(DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public HashSet<string> AppliedMigrations

Field Value

HashSet<string>

Area

The area that this lot covers in the world

[DataMember]
public Rectangle Area

Field Value

Rectangle

ExportedVersion

The game version that this lot was exported with

[DataMember]
public string ExportedVersion

Field Value

string

Furniture

The Furniture that is present on this lot

[DataMember]
public List<Furniture> Furniture

Field Value

List<Furniture>

OtherFloorTiles

A set of tiles on additional floors beside the ground floor. Note that array entries may contain null tiles.

[DataMember]
public Dictionary<int, Tile[,]> OtherFloorTiles

Field Value

Dictionary<int, Tile[,]>

Roofs

The roofs that are present on this lot

[DataMember]
public List<Roof> Roofs

Field Value

List<Roof>

Stairs

The stairs that are present on this lot.

[DataMember]
public List<Stairs> Stairs

Field Value

List<Stairs>

Tiles

The ground tiles of this lot

[DataMember]
public Tile[,] Tiles

Field Value

Tile[,]

Type

This lot's LotType

[DataMember]
public LotType Type

Field Value

LotType

WallLikes

The walls that are present on this lot.

[DataMember]
public List<WallLike> WallLikes

Field Value

List<WallLike>

Walls

The walls that are present on this lot

[DataMember]
[Obsolete("Use the new WallLikes instead")]
public List<Wall> Walls

Field Value

List<Wall>

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 Map

The map to validate this exported lot for.