Table of Contents

Class ShelterQuery

Namespace
FishMMO.Shared.Weather
Assembly
FishMMO.Shared.dll

Where an NPC can get out of the weather (Phase 4 of the core and modules plan, 2026-11-18): the nearest shelter volume's bounds. The World Simulation module installs Source from its weather volumes; with none installed there is no shelter anywhere, and an NPC that would seek one stays where it is.

public static class ShelterQuery
Inheritance
ShelterQuery
Inherited Members

Fields

Source

public static ShelterQuery.NearestSource Source

Field Value

ShelterQuery.NearestSource

Methods

TryNearest(Scene, Vector3, float, float, out Bounds)

The bounds of the nearest shelter within maxDistance of from that shelters at least minimumStrength; false when there is none.

public static bool TryNearest(Scene scene, Vector3 from, float maxDistance, float minimumStrength, out Bounds bounds)

Parameters

scene Scene
from Vector3
maxDistance float
minimumStrength float
bounds Bounds

Returns

bool