Table of Contents

Class BuffVolumeRegistry

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Every enabled BuffVolume, by scene.

public static class BuffVolumeRegistry
Inheritance
BuffVolumeRegistry
Inherited Members

Methods

Add(SceneHandle, BuffVolume)

public static void Add(SceneHandle sceneHandle, BuffVolume volume)

Parameters

sceneHandle SceneHandle
volume BuffVolume

AnyNeedsWeather(Scene)

True when any volume in the scene needs the weather to decide.

public static bool AnyNeedsWeather(Scene scene)

Parameters

scene Scene

Returns

bool

Applicable(Scene, Vector3, in WeatherReading, Dictionary<int, BuffVolume>)

Every volume in the scene whose buff should be on a character standing at that point, keyed by buff template ID.

public static void Applicable(Scene scene, Vector3 position, in WeatherReading weather, Dictionary<int, BuffVolume> into)

Parameters

scene Scene
position Vector3
weather WeatherReading
into Dictionary<int, BuffVolume>

Cleared and refilled. Supplied by the caller so the per-tick pass does not allocate.

Remarks

The whole verdict, in one pure pass over a position: no history, no enter/exit bookkeeping, nothing carried from the previous tick. That is what makes a replayed tick reach the same answer as the first run of it, and what a trigger could never have given (N13).

Two volumes granting the same buff collapse to one entry, so overlapping regions do not apply it twice — and, because the answer is recomputed from scratch, walking out of one while still inside the other simply keeps it on.

Clear()

public static void Clear()

InScene(Scene)

public static IReadOnlyList<BuffVolume> InScene(Scene scene)

Parameters

scene Scene

Returns

IReadOnlyList<BuffVolume>

Remove(SceneHandle, BuffVolume)

public static void Remove(SceneHandle sceneHandle, BuffVolume volume)

Parameters

sceneHandle SceneHandle
volume BuffVolume