Class JsonFileOptionsStore

Namespace
SurvivorsMaker.Presentation
Assembly
SurvivorsMaker.Presentation.dll

Device options as a SaveEnvelope JSON file, independent of profile and run.

public sealed class JsonFileOptionsStore : IOptionsStore
Inheritance
JsonFileOptionsStore
Implements
Inherited Members

Constructors

JsonFileOptionsStore(string)

public JsonFileOptionsStore(string path)

Parameters

path string

Properties

File

public JsonEnvelopeFile File { get; }

Property Value

JsonEnvelopeFile

Path

public string Path { get; }

Property Value

string

Methods

Delete()

public void Delete()

Load()

Loads user preferences; implementations choose their fallback when no saved options exist.

public OptionsState Load()

Returns

OptionsState

Save(OptionsState)

Stores user preferences without coupling them to progression or the saved run.

public void Save(OptionsState options)

Parameters

options OptionsState