1#ifndef ALCHEMY_PALQUEUE_H
2#define ALCHEMY_PALQUEUE_H
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
STATIC_ASSERT, a compile-time check that emits nothing.
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array.
#define offsetof(type, member)
The palette cycling queue (heap slot 28): four cycles and how many are in use.
struct PaletteSnapshot entries[4]
u16 count
Cycles in use, 0 to 4; PaletteQueue_StepCycles masks four to none.
A palette cycle: a run of up to 16 background palette colours, saved and rotated by one colour every ...
s16 delay
frames; the timer restarts from it
u16 count
colours in the run
u16 colors[16]
the run's colours as saved when the cycle was added
u16 * source
the first colour of the run, in BG palette RAM
u16 position
colours rotated so far, 0 to count - 1
u16 timer
frames until the next rotation
The integer types, TRUE, UNUSED and the fixed-address macros.