Table of Contents

Class SceneCaveLife

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

The cave-life spots of every loaded scene (CaveLife), keyed by scene, offered by the scene's client-only site emitters (SceneSiteEmitters) while it is loaded: what the ambient life places its cave creatures from.

public static class SceneCaveLife
Inheritance
SceneCaveLife
Inherited Members

Remarks

Keyed by scene, as SceneClimbables is, so stacked instances of one scene each offer their own, and a spot is its index in its scene's list: every client loads the same asset, so a creature hashed from its scene's name and its spot's index is the same creature for everyone.

Properties

Sets

Every loaded scene's spots, ordered by scene name (not by load order, which differs between players).

public static IReadOnlyList<SceneCaveLife.Set> Sets { get; }

Property Value

IReadOnlyList<SceneCaveLife.Set>

Version

Bumped whenever a scene's spots come or go, so a reader can cache what it filed.

public static int Version { get; }

Property Value

int

Methods

Clear()

Forgets every scene's spots.

public static void Clear()

Register(Scene, object, IReadOnlyList<SceneCaveLifeSpot>)

Offers scene's spots. A second owner for the same scene replaces the first.

public static void Register(Scene scene, object owner, IReadOnlyList<SceneCaveLifeSpot> spots)

Parameters

scene Scene
owner object
spots IReadOnlyList<SceneCaveLifeSpot>

Unregister(Scene, object)

Withdraws scene's spots, when owner is the one that offered them.

public static void Unregister(Scene scene, object owner)

Parameters

scene Scene
owner object