Class GameOptions
- Namespace
- SurvivorsMaker.Presentation
- Assembly
- SurvivorsMaker.Presentation.dll
The device options in effect for this process. Presentation components read them when they play a sound, shake the camera, flash or show a damage number, so a change applies on the next use. Authored settings (PresentationSettings, UiTheme) are never modified.
public static class GameOptions
- Inheritance
-
GameOptions
- Inherited Members
Properties
Applicator
Replaces how options reach the engine (e.g. platform-specific window handling). Null restores the default.
public static IOptionsApplicator Applicator { get; set; }
Property Value
Current
The options in effect. Treat as read-only; change them with Set(OptionsState).
public static OptionsState Current { get; }
Property Value
EffectsVolume
public static float EffectsVolume { get; }
Property Value
MasterVolume
public static float MasterVolume { get; }
Property Value
MusicVolume
public static float MusicVolume { get; }
Property Value
ReduceFlashes
public static bool ReduceFlashes { get; }
Property Value
Revision
public static int Revision { get; }
Property Value
ShakeScale
Multiplier for camera shake strength: 0 when shake is off.
public static float ShakeScale { get; }
Property Value
ShowDamageNumbers
public static bool ShowDamageNumbers { get; }
Property Value
Methods
FlashScale(AccessibilitySettings)
Strength of a flash effect given the authored reduced strength used while "reduce flashes" is on.
public static float FlashScale(AccessibilitySettings settings)
Parameters
settingsAccessibilitySettings
Returns
Sanitize(OptionsState)
Copy with out-of-range values replaced; other choices are kept.
public static OptionsState Sanitize(OptionsState options)
Parameters
optionsOptionsState
Returns
Set(OptionsState)
Stores a sanitised copy, applies it to the engine and notifies listeners.
public static void Set(OptionsState options)
Parameters
optionsOptionsState
Events
Changed
Raised after Set(OptionsState) applied new options.
public static event Action Changed