Macaw OS C reference

Function levelsettingtext

#include <macawlevel.h>
int levelsettingtext(int level, const char *name, char *buf, int size);

Gives one of a level's settings as text, such as "sky", the name of the sky round it.

Parameters

levelint
The level.
nameconst char *
The setting's name.
bufchar *
Where the text goes, a char array.
sizeint
How many bytes buf holds.

Returns int

The length of the text, or 0 if the level doesn't have that setting.

In Building from code: entities and settings, with leveladdentity, levelremoveentity, levelmoveentity, levelentitysetnum, levelentitysettext, levelentitysetbool, levelsetting, levelsetsetting, levelsetsettingtext.