Table of Contents

Class HostConfig

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

IL-embedded host configuration.

The defaults here are sentinels, and this file is tracked so the project always compiles. The real values live in the gitignored HostConfig.generated.cs, written by FishMMO Dashboard > Game Settings (or by CI substituting the sentinels in GeneratedFileTemplates/HostConfig.generated.cs.template), which implements FishMMO.Shared.HostConfig.Configure(FishMMO.Shared.HostConfig.Values) to overwrite them.

Why the split: a fresh clone has no generated file. When the generated file declared the whole class, its absence was a compile error, and a project that fails to compile on first open drops into Safe Mode, where no editor code runs — including the FishMMO menu that writes the file. An unimplemented partial method is removed by the compiler, so a missing generated file now just means sentinels, which ClientSecurityBuildValidator refuses to ship.

public static class HostConfig
Inheritance
HostConfig
Inherited Members

Fields

ApiHost

API gateway URL with trailing slash (e.g. "https://api.fishmmo.com/").

public static readonly string ApiHost

Field Value

string

GameHost

Game server hostname for WebTransport/QUIC connections.

public static readonly string GameHost

Field Value

string

LauncherHtmlUrl

Launcher HTML/news page URL.

public static readonly string LauncherHtmlUrl

Field Value

string

PlayHost

WebGL client / player-facing hostname.

public static readonly string PlayHost

Field Value

string

RootDomain

Root domain (no subdomain) for TLS certs and email.

public static readonly string RootDomain

Field Value

string

SentinelMarker

public const string SentinelMarker = "FISHMMO_SENTINEL_PLACEHOLDER"

Field Value

string

SmtpFromAddress

SMTP from address for verification emails.

public static readonly string SmtpFromAddress

Field Value

string

SmtpFromName

SMTP from display name.

public static readonly string SmtpFromName

Field Value

string