Table of Contents

Class RenderSwitches

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

Named runtime switches modules offer the rendering test beds (the browser probe's SetSetting, the native player's --set-a / --set-b): "ambientLife=0" turns the Ambient Life module's animals off for an A/B, and the test bed names no module (Phase 4 of the core and modules plan, 2026-11-17).

public static class RenderSwitches
Inheritance
RenderSwitches
Inherited Members

Properties

Names

The registered switches' names.

public static IEnumerable<string> Names { get; }

Property Value

IEnumerable<string>

Methods

Register(string, Action<string>)

Registers a switch; registering a name again replaces it.

public static void Register(string name, Action<string> apply)

Parameters

name string
apply Action<string>

TryApply(string, string)

Applies a registered switch; false when no installed module offers name.

public static bool TryApply(string name, string value)

Parameters

name string
value string

Returns

bool