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
Default
public static readonly UiStrings Default
Field Value
Entries
public List<UiStringEntry> Entries
Field Value
FirstDisplayedLevel
public int FirstDisplayedLevel
Field Value
Resolve
public Func<string, string> Resolve
Field Value
Properties
Revision
public int Revision { get; }
Property Value
Methods
DisplayLevel(int)
public long DisplayLevel(int simulationLevel)
Parameters
simulationLevelint
Returns
Format(string, params object[])
public string Format(string key, params object[] args)
Parameters
Returns
Get(string)
public string Get(string key)
Parameters
keystring
Returns
Level(int)
public string Level(int simulationLevel)
Parameters
simulationLevelint
Returns
Set(string, string)
public void Set(string key, string value)
Parameters
Tier(int)
public string Tier(int zeroBased)
Parameters
zeroBasedint
Returns
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)