tidewaterFx.package
This package holds more than this page lists. See all of its files in its world.
README.md
weatherLink
Where Tidewater learns how hard it is raining, how wet the ground is and which way the wind blows, without depending on any weather kit.
The convention is named values: any kit writes weather.rain (0..1), weather.wetness
(0..1) and weather.wind (a vector, m/s) on any entity, and Tidewater reads the strongest of
each across every entity holding them. Cloudburst publishes them; so can your own weather.
With no weather kit, Water.setWeather({ rain = 0.6 }) sets Tidewater's own. The engine
weather's wetness is read as a floor, so a world wetted through @builtin::systems.weather
gets puddles too.
local W = require("tidewater.modules.weatherLink")
W.now() -- { rain, wetness, wind = { x, y, z }, source }
W.set({ rain = 0.5 })