Table of Contents

Class ExportedHousehold

Namespace
TinyLife.World
Assembly
Tiny Life.dll

This class represents an exported version of a Household, storing all of the Map-independent data.

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

Fields

AppliedMigrations

The set of names of the Migration instances that have already been applied to objects in this exported household. When a new exported household 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>

ClothesStorage

This household's clothing storage

[DataMember]
public List<WornClothes> ClothesStorage

Field Value

List<WornClothes>

Description

The exported household's description

[DataMember]
public string Description

Field Value

string

ExportedVersion

The game version that this household was exported with

[DataMember]
public string ExportedVersion

Field Value

string

FurnitureStorage

This household's furniture storage

[DataMember]
public List<Furniture> FurnitureStorage

Field Value

List<Furniture>

Members

The PersonLike instances that are members of this household

[DataMember]
[JsonConverter(typeof(ExportedHousehold.PersonLikeConverter))]
public List<PersonLike> Members

Field Value

List<PersonLike>

Money

The money that this household has

[DataMember]
public float Money

Field Value

float

Methods

ValidatePeople(Map)

Validates this exported household's content for preview purposes, for example for use with the CreateHouseholdPreview(Map, string, Point, float, Color, bool, Func<string, ExportedHousehold>) method.

public void ValidatePeople(Map map)

Parameters

map Map

The map to validate this exported household for.