Class WeatherQuery
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
Properties
CurrentTick
The current tick.
public static uint CurrentTick { get; }
Property Value
TickSource
The server tick "now" means; forwards to WorldTick.
public static Func<uint> TickSource { get; set; }
Property Value
Methods
HasWeather(Scene)
Whether scene has weather; false when no weather is installed.
public static bool HasWeather(Scene scene)
Parameters
sceneScene
Returns
Sample(Scene, Vector3)
The weather at position now.
public static WeatherReading Sample(Scene scene, Vector3 position)
Parameters
sceneScenepositionVector3
Returns
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
sceneScenepositionVector3tickuint