Class PerSaveOptions
The game's per-save options, which are displayed in the TinyLife.Uis.OptionsMenu.Initialize(MLEM.Ui.UiSystem,System.Boolean,TinyLife.Uis.OptionsMenu.Tab) menu and saved to disk. Note that Instance is null if there is no Map loaded.
Inheritance
Implements
Inherited Members
Namespace: TinyLife
Assembly: Tiny Life.dll
Syntax
[DataContract]
public class PerSaveOptions : JsonTypeSafeGenericDataHolder, IGenericDataHolder
Fields
AiImportantActions
Whether the AI should be able to execute important options, like paying the bills. This option is intended to be used through CanDoImportantAction(ActionInfo, Boolean).
Declaration
[DataMember]
public bool AiImportantActions
Field Value
Type | Description |
---|---|
System.Boolean |
AiRelationships
Whether the AI should be able to build complex relationships. This option is intended to be used through CanDoSocialAction(ActionInfo, Boolean) and IsReadyForRomance(ActionInfo, Boolean).
Declaration
[DataMember]
public bool AiRelationships
Field Value
Type | Description |
---|---|
System.Boolean |
AiSkillBuilding
Whether the AI should be able to execute skill building actions like painting and programming. This option is intended to be used through GetSkillPriorityMod(Person, SkillType).
Declaration
[DataMember]
public bool AiSkillBuilding
Field Value
Type | Description |
---|---|
System.Boolean |
DisableAiHousehold
Whether the AI of everyone in the CurrentHousehold should be disabled or not
Declaration
[DataMember]
public bool DisableAiHousehold
Field Value
Type | Description |
---|---|
System.Boolean |
DisableAiSelected
Whether the AI of the SelectedPerson should be disabled or not
Declaration
[DataMember]
public bool DisableAiSelected
Field Value
Type | Description |
---|---|
System.Boolean |
DisplayedHints
The Name of InGameHint objects that have already been displayed
Declaration
[DataMember]
public readonly HashSet<string> DisplayedHints
Field Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<System.String> |
LoadedMods
A set of mod ids, mapped to their names, of mods that were loaded the last time this save game was played. This dictionary is used to display a warning when a save is loaded with missing mods.
Declaration
[DataMember]
public Dictionary<string, string> LoadedMods
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> |
MapCustom
Whether the map that is used in this save game is a custom map. Do not change this value, or the save will likely be corrupted.
Declaration
[DataMember]
public bool MapCustom
Field Value
Type | Description |
---|---|
System.Boolean |
MapName
The name of the map that is used in this save game. Do not change this value, or the save will likely be corrupted.
Declaration
[DataMember]
public string MapName
Field Value
Type | Description |
---|---|
System.String |
MaxRegularVisitors
The maximum amount of regular visitors that the current map can have. When this value is changed, UpdateExternalPeople(Action<Single>) should be called to apply it.
Declaration
[DataMember]
public int MaxRegularVisitors
Field Value
Type | Description |
---|---|
System.Int32 |
OtherLifespan
The LifeSpan that a Person who is not in the currently played household should have. This value is used by GetDaysBeforeAging().
Declaration
[DataMember]
public LifeSpan OtherLifespan
Field Value
Type | Description |
---|---|
LifeSpan |
PlayedLifespan
The LifeSpan that a Person who is in the currently played household should have. This value is used by GetDaysBeforeAging().
Declaration
[DataMember]
public LifeSpan PlayedLifespan
Field Value
Type | Description |
---|---|
LifeSpan |
Properties
Instance
The static singleton instance of PerSaveOptions. Note that this value is null if there is no Map loaded.
Declaration
public static PerSaveOptions Instance { get; }
Property Value
Type | Description |
---|---|
PerSaveOptions |
Methods
Load(String)
Loads the options from the default options file path for the given save
Declaration
public static PerSaveOptions Load(string save)
Parameters
Type | Name | Description |
---|---|---|
System.String | save |
Returns
Type | Description |
---|---|
PerSaveOptions |
Save(String)
Saves the options to the default options file path for the given save
Declaration
public void Save(string save)
Parameters
Type | Name | Description |
---|---|---|
System.String | save |