Module Entities
#include <macawlevel.h>Each entity has a class, its kind, such as "pickup" or "start", and fields with values. These calls read a level's entities of one class, with the class's defaults filled in for fields the level doesn't give. Give the class as NULL for every entity, in the level's order. A field reads as a number or as text, whichever it is.
Functions
- levelentitycount
- Tells you how many entities of a class a level has.
- levelentity
- Gives where an entity is.
- levelentityhas
- Tells you whether an entity has a field, and what kind of value it holds.
- levelentitynum
- Gives an entity's field as a number.
- levelentitytext
- Gives an entity's field as text.
- levelentityfield
- Gives the name of one of an entity's fields, so you can go through them all.