include/field/weather.h
The ground particles, motes of light and sparkles that the weather state holds.
#include "edition.h"#include "fixed_math.h"#include "static_assert.h"#include "types.h"#include "system.h"
Included by ground_mask.h.
Structures
| Name | Description | |
|---|---|---|
struct | WEATHER_PARTICLE | One weather particle: depth-slot link and OAM attributes (written whole by start functions as semi-transparent, size 1, priority 1 and palette 13), followed by its world position. |
struct | WEATHER_STATE | HEAP_SLOT_WEATHER while ground particles, motes or sparkles run. |
Macros
| Name | Description | |
|---|---|---|
#define | WEATHER_PARTICLE_COUNT 32 | WEATHER_STATE.particles |
#define | GROUND_PARTICLE_FREED 65535 | WEATHER_PARTICLE.timer after the decrement that counts a live particle down, when it was already free (0): the Uint16 wraps. |
#define | RAIN_SPLASH_FRAMES 16 | The frames of a raindrop's splash on the ground (WeatherRainSplashFrames, five halfwords each), played from the last down to the first. |
#define | WeatherStateWork (*(WEATHER_STATE **)&HeapSlots[HEAP_SLOT_WEATHER]) | HEAP_SLOT_WEATHER: the running ground particles, motes or sparkles. |
Description
The ground particles, motes of light and sparkles that the weather state holds.
Macros in detail
WEATHER_PARTICLE_COUNT
#define WEATHER_PARTICLE_COUNT 32
WEATHER_STATE.particles
Referenced by fdEffectInitSparkles(), fdEffectUpdateSparkles(), fdMotesStart(), fdMotesUpdate(), fdWeatherStartRain() and fdWeatherUpdateRain().
Definition at line 13 of file weather.h.
GROUND_PARTICLE_FREED
#define GROUND_PARTICLE_FREED 65535
WEATHER_PARTICLE.timer after the decrement that counts a live particle down,
when it was already free (0): the Uint16 wraps.
Referenced by fdMotesUpdate() and fdWeatherUpdateRain().
Definition at line 48 of file weather.h.
RAIN_SPLASH_FRAMES
#define RAIN_SPLASH_FRAMES 16
The frames of a raindrop's splash on the ground (WeatherRainSplashFrames,
five halfwords each), played from the last down to the first.
Referenced by fdEffectInitSparkles(), fdMotesStart(), fdWeatherStartRain() and fdWeatherUpdateRain().
Definition at line 52 of file weather.h.
WeatherStateWork
#define WeatherStateWork (*(WEATHER_STATE **)&HeapSlots[HEAP_SLOT_WEATHER])
HEAP_SLOT_WEATHER: the running ground particles, motes or sparkles.
Referenced by fdEffectUpdateSparkles(), fdMotesUpdate(), fdWeatherUpdateRain(), scSolSanctumEruptionPlayHostageScript(), scSolSanctumEruptionPlayWiseOneRescue() and scSolSanctumEruptionStepShards().
Definition at line 69 of file weather.h.