Class UiStrings

Namespace
SurvivorsMaker.Presentation
Assembly
SurvivorsMaker.Presentation.dll

Keyed copy with English fallbacks. A localization adapter can supply Resolve.

public sealed class UiStrings
Inheritance
UiStrings
Inherited Members

Constructors

UiStrings()

public UiStrings()

Fields

Content

Authored names and descriptions of the content on screen. GameUiRoot fills it from the session's ContentAsset; hosts that start runs from a RunRequest can assign their own. Null = names derived from ids.

public ContentTextTable Content

Field Value

ContentTextTable

Default

public static readonly UiStrings Default

Field Value

UiStrings

Entries

public List<UiStringEntry> Entries

Field Value

List<UiStringEntry>

FirstDisplayedLevel

public int FirstDisplayedLevel

Field Value

int

Resolve

public Func<string, string> Resolve

Field Value

Func<string, string>

Properties

Revision

public int Revision { get; }

Property Value

int

Methods

DisplayLevel(int)

public long DisplayLevel(int simulationLevel)

Parameters

simulationLevel int

Returns

long

Format(string, params object[])

public string Format(string key, params object[] args)

Parameters

key string
args object[]

Returns

string

Get(string)

public string Get(string key)

Parameters

key string

Returns

string

Level(int)

public string Level(int simulationLevel)

Parameters

simulationLevel int

Returns

string

Set(string, string)

public void Set(string key, string value)

Parameters

key string
value string

Tier(int)

public string Tier(int zeroBased)

Parameters

zeroBased int

Returns

string

TryGet(string, out string)

The text for key from the language resolver, then this table, then the built-in defaults. False when none has it (content names then fall back to their authored text).

public bool TryGet(string key, out string value)

Parameters

key string
value string

Returns

bool