Class BuffVolumeRegistry
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
sceneHandleSceneHandlevolumeBuffVolume
AnyNeedsWeather(Scene)
True when any volume in the scene needs the weather to decide.
public static bool AnyNeedsWeather(Scene scene)
Parameters
sceneScene
Returns
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
sceneScenepositionVector3weatherWeatherReadingintoDictionary<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
sceneScene
Returns
Remove(SceneHandle, BuffVolume)
public static void Remove(SceneHandle sceneHandle, BuffVolume volume)
Parameters
sceneHandleSceneHandlevolumeBuffVolume