Table of Contents

Interface ISceneObjectNameSource

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Where a scene object's generated name comes from (SceneObjectNamer): the Naming module's name generator, installed into Source (Phase 4 of the core and modules plan, 2026-11-18). The server resolves the seed, the gender and the place; both peers then build the same name from them.

public interface ISceneObjectNameSource

Methods

DeriveSeed(SceneObjectNamingSettings, string)

The name's seed: from the region and object seeds when set, else fresh. Never 0 (0 means "keep the authored name").

int DeriveSeed(SceneObjectNamingSettings settings, string fallbackObjectSeed)

Parameters

settings SceneObjectNamingSettings
fallbackObjectSeed string

Returns

int

PickGender(SceneObjectNamingSettings, RaceTemplate, int)

The gender a character's name is drawn for, from the settings' policy and the race (an NPC's own unless overridden).

CharacterGender PickGender(SceneObjectNamingSettings settings, RaceTemplate ownRace, int seed)

Parameters

settings SceneObjectNamingSettings
ownRace RaceTemplate
seed int

Returns

CharacterGender

ResolvePlace(SceneObjectNamingSettings, Vector3, Scene, out int, out byte)

The biome (its registry ID) and climate variant (its index) a place name is drawn from, at the object's position.

void ResolvePlace(SceneObjectNamingSettings settings, Vector3 position, Scene scene, out int biomeID, out byte variantIndex)

Parameters

settings SceneObjectNamingSettings
position Vector3
scene Scene
biomeID int
variantIndex byte

TryBuild(SceneObjectNamingSettings, RaceTemplate, int, CharacterGender, string, int, byte, Scene, out string, out string)

Builds the name from what the server resolved; false, with the reason, when the settings cannot name the object.

bool TryBuild(SceneObjectNamingSettings settings, RaceTemplate ownRace, int seed, CharacterGender gender, string autoProfession, int biomeID, byte variantIndex, Scene scene, out string name, out string error)

Parameters

settings SceneObjectNamingSettings
ownRace RaceTemplate
seed int
gender CharacterGender
autoProfession string
biomeID int
variantIndex byte
scene Scene
name string
error string

Returns

bool