Table of Contents

Class ClientVisualSettings

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

The player's sky, weather and ambient-life settings: the Graphics tab's SKY, WEATHER and AMBIENT LIFE rows.

public static class ClientVisualSettings
Inheritance
ClientVisualSettings
Inherited Members

Remarks

Overlays, never edits. Every one of these systems takes its budget from the Weather Render Profile, a ScriptableObject: writing a player's choice into it would, in the editor, rewrite the asset. So each setting is read where the system reads its profile and combined with it there (switched off, or a different tier's numbers), and the profile is left as authored.

Levels are tiers. A VisualLevel other than Auto picks which Quality preset's numbers a system uses (TierLevel(VisualLevel) → WeatherRenderProfile.TierFor), so Low clouds on the High Fidelity preset are exactly the Performant preset's clouds: values already tuned and measured, not a multiplier nobody has looked at.

Read every frame, cheaply. The values are read from the settings store once per frame at most and held, so a system asking several times a frame pays a field read; a change made in the options panel, a profile load or a reset is picked up on the next frame.

Fields

LifeSection

public const string LifeSection = "options-life-list"

Field Value

string

Rows

Every row, in the order shown. The defaults here are the defaults the systems act on: a fresh install draws everything, at the Quality preset's own level.

public static readonly ClientVisualSettings.Row[] Rows

Field Value

Row[]

SkySection

The section of the Graphics tab a row belongs to, as the name of its list container.

public const string SkySection = "options-sky-list"

Field Value

string

WeatherSection

public const string WeatherSection = "options-weather-list"

Field Value

string

Properties

CloudQuality

The cloud march's level (SkySystem SetCloudGlobals).

public static VisualLevel CloudQuality { get; }

Property Value

VisualLevel

CloudShadows

Whether the clouds shade the ground.

public static bool CloudShadows { get; }

Property Value

bool

CloudTierLevel

The Quality level the clouds take their march from.

public static int CloudTierLevel { get; }

Property Value

int

FallingLeaves

Whether leaves fall under the trees.

public static bool FallingLeaves { get; }

Property Value

bool

FloatingDebris

Whether the sea's floating weed, wood and ice are drawn (SeaFloatSystem).

public static bool FloatingDebris { get; }

Property Value

bool

GodRays

Whether the sun's shafts through the cloud are drawn.

public static bool GodRays { get; }

Property Value

bool

HeatHaze

Whether the heat shimmer is drawn (FishHeatShimmerFeature).

public static bool HeatHaze { get; }

Property Value

bool

LightningFlashes

Whether lightning lights the scene; the bolts are drawn either way.

public static bool LightningFlashes { get; }

Property Value

bool

SeaLife

Whether the sea's life is drawn (SeaLifeSystem).

public static bool SeaLife { get; }

Property Value

bool

VolumetricFog

Whether the froxel fog volume runs (FishVolumetricFogFeature); the height fog draws in its place.

public static bool VolumetricFog { get; }

Property Value

bool

WeatherEffects

The precipitation, motes, splashes, rain curtains, vortices and meteors' level.

public static VisualLevel WeatherEffects { get; }

Property Value

VisualLevel

WeatherTierLevel

The Quality level the weather's particles, curtains, vortices and meteors take their budget from.

public static int WeatherTierLevel { get; }

Property Value

int

Wildlife

Whether the land's ambient life is drawn (AmbientLifeSystem, its caves included).

public static bool Wildlife { get; }

Property Value

bool

WildlifeScale

The share of the ambient-life budget drawn: Low a third, Medium two thirds, Auto and High all of it.

public static float WildlifeScale { get; }

Property Value

float

Methods

GetBool(string, bool)

Reads a switch row's value.

public static bool GetBool(string key, bool fallback)

Parameters

key string
fallback bool

Returns

bool

GetLevel(string)

Reads a level row's value.

public static VisualLevel GetLevel(string key)

Parameters

key string

Returns

VisualLevel

SetBool(string, bool)

Writes a switch row and tells whoever listens.

public static void SetBool(string key, bool value)

Parameters

key string
value bool

SetLevel(string, VisualLevel)

Writes a level row and tells whoever listens.

public static void SetLevel(string key, VisualLevel level)

Parameters

key string
level VisualLevel

TierLevel(VisualLevel)

The Quality level whose tier a system at level takes its budget from.

public static int TierLevel(VisualLevel level)

Parameters

level VisualLevel

Returns

int

Events

OnChanged

Raised when any of these settings is changed through this class.

public static event Action OnChanged

Event Type

Action