Table of Contents

Class WeatherQuery

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

The weather at a place and tick, for gameplay: the core's question, answered by whichever weather is installed.

public static class WeatherQuery
Inheritance
WeatherQuery
Inherited Members

Remarks

Core (Phase 4 of the core and modules plan, 2026-11-17). The Climate and Weather module installs Sampler as it loads (its WeatherTimelines); without it every place reads Calm. The storm timelines, cells and weather commands are the module's.

Fields

Sampler

The installed weather's answer for (scene, position, tick), or null for none.

public static Func<Scene, Vector3, uint, WeatherReading> Sampler

Field Value

Func<Scene, Vector3, uint, WeatherReading>

SceneHasWeather

Whether a scene has weather at all (a timeline); installed by the weather with Sampler.

public static Func<Scene, bool> SceneHasWeather

Field Value

Func<Scene, bool>

Properties

CurrentTick

The current tick.

public static uint CurrentTick { get; }

Property Value

uint

TickSource

The server tick "now" means; forwards to WorldTick.

public static Func<uint> TickSource { get; set; }

Property Value

Func<uint>

Methods

HasWeather(Scene)

Whether scene has weather; false when no weather is installed.

public static bool HasWeather(Scene scene)

Parameters

scene Scene

Returns

bool

Sample(Scene, Vector3)

The weather at position now.

public static WeatherReading Sample(Scene scene, Vector3 position)

Parameters

scene Scene
position Vector3

Returns

WeatherReading

Sample(Scene, Vector3, uint)

The weather at position at tick; calm when no weather is installed.

public static WeatherReading Sample(Scene scene, Vector3 position, uint tick)

Parameters

scene Scene
position Vector3
tick uint

Returns

WeatherReading