Macaw OS C reference

Function levellight

#include <macawlevel.h>
int levellight(int level, int i, levellightinfo *light);

Gives one of a level's lamps or area lights, with the defaults filled in for what the level doesn't say.

Parameters

levelint
The level.
iint
Which light, from 0.
lightlevellightinfo *
A levellightinfo to fill in (see The structs), or NULL just to check it's there.

Returns int

1 if there's an i'th light, or 0 if not.

In What's in a level, with levelstart, levellightcount, levelwatercount, levelwater, levelprobecount, levelprobe.