Module Kinds of entity
#include <macawlevel.h>These tell you about the classes a level can have: Macaw OS's own (light, arealight, start, probe), the generic ones (marker, pickup, enemy, trigger, sound, sign) and a game's own, from an entities.lua in the level's folder or a folder above it. Where a call takes classes, you can give it a level's number for the level's own classes, or a number from entityclasses.
Functions
- entityclasses
- Finds the classes a level at a place can have, reading the game's
entities.luaif there is one. - entityclasscount
- Tells you how many classes there are in a set.
- entityclassname
- Gives the name of one class in a set: Macaw OS's own first, then the game's, then the generic ones.
- entityclassinfo
- Gives one thing about a class, as text.
- entityclassfieldcount
- Tells you how many fields a class describes.
- entityclassfield
- Gives one of a class's fields: its name, its type and its default, each as text.