Macaw OS C reference

Module Building from code: entities and settings

#include <macawlevel.h>

Functions

leveladdentity
Adds an entity of a class at a place.
levelremoveentity
Takes an entity out of the level.
levelmoveentity
Moves an entity to a new place.
levelentitysetnum
Sets one of an entity's fields to a number.
levelentitysettext
Sets one of an entity's fields to text, or takes the field away.
levelentitysetbool
Sets one of an entity's fields to true or false.
levelsetting
Gives one of a level's number settings: "ambient" (the light everywhere), "bounce" (how much light bounces), "luxel" (the size of a patch of baked light) or "skylight" (how strong the sky's light is).
levelsettingtext
Gives one of a level's settings as text, such as "sky", the name of the sky round it.
levelsetsetting
Sets one of a level's number settings.
levelsetsettingtext
Sets one of a level's settings to text, such as "sky".