GlAtmos
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->
GlAtmos
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->TODO: describe this component.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2gl.atmos.GlAtmos — SLICE 5: the day, the weather and the wildlife. Attach to `Mount_Atmos`. One full day is GL.DAY_MINUTES real minutes (24). The clock drives the sun's arc, its colour and strength, the ambient fill and the procedural sky's time of day; torches in the village light at dusk and go out at dawn. Weather is per island, chosen from the island's own `weatherSet` in gl_core — which is why Alabasta can sandstorm, Skypiea can throw lightning and Water 7 can rain, without any other slice knowing how. Publishes: timeOfDay() -> 0..24 nightFactor() -> 0..1 weather() -> current setWeather(name) isNight() dayLengthMinutes()
findByName(name: string) → any
| arg | type | description |
|---|---|---|
| name | string |
worldSlice( ) → any
lerp(a: number, b: number, f: number) → number
| arg | type | description |
|---|---|---|
| a | number | |
| b | number | |
| f | number |
spawnProp(name: string, pos: { number }, scale: { number }, tint: { number }, opts: any?) → void
| arg | type | description |
|---|---|---|
| name | string | |
| pos | { number } | |
| scale | { number } | |
| tint | { number } | |
| opts | any? |
timeOfDay( ) → number
The hour, 0..24, on the world clock.
nightFactor( ) → number
0 in full day, 1 in the deep of the night, with dusk and dawn shoulders.
isNight( ) → boolean
buildTorches( ) → void
buildWildlife( ) → void
awake( ) → void
update(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
timeOfDay( ) → number
The current hour, 0..24.
nightFactor( ) → number
0 in full day, 1 at the dead of night.
isNight( ) → boolean
Whether it is dark enough for torches.
weather( ) → string
The weather running now, by name.
weatherNames( ) → void
Every weather this world knows.
setWeather(name: string) → boolean
Force a spell of weather. Turns auto-weather off so it sticks.
| arg | type | description |
|---|---|---|
| name | string |
dayLengthMinutes( ) → number
How many real minutes a full day takes.
setHour(h: number) → void
Jump the clock to an hour, for looking at a time of day on demand.
| arg | type | description |
|---|---|---|
| h | number |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.