Table of Contents

Class SaveHandler.SaveData

Namespace
TinyLife
Assembly
Tiny Life.dll

A class used by Load(GameImpl, Action<string>, Action<float>) and Save(GameImpl) to store information about a save file effectively. Additional data can be added due to this class being a MLEM.Data.Json.JsonTypeSafeGenericDataHolder.

public class SaveHandler.SaveData : JsonTypeSafeGenericDataHolder, IGenericDataHolder
Inheritance
JsonTypeSafeGenericDataHolder
SaveHandler.SaveData
Implements
IGenericDataHolder
Inherited Members
JsonTypeSafeGenericDataHolder.GetDataKeys()
Extension Methods

Properties

Achievements

The achievements included in the save, as well as their state.

public Achievement[] Achievements { get; init; }

Property Value

Achievement[]

Map

The map used in the save, which was previously used before Maps was introduced.

[Obsolete("Deprecated, use the new property Maps instead.")]
public Map Map { get; init; }

Property Value

Map

Maps

The maps included in the save, each Map saved into a Newtonsoft.Json.Linq.JObject upon save data creation.

public Dictionary<string, JObject> Maps { get; init; }

Property Value

Dictionary<string, JObject>

Time

The in-game time of the save.

public TimeSpan Time { get; init; }

Property Value

TimeSpan