Macaw OS C reference

Function entityclasses

#include <macawlevel.h>
int entityclasses(const char *path);

Finds the classes a level at a place can have, reading the game's entities.lua if there is one. The level doesn't need to exist yet.

Parameters

pathconst char *
Where the level is (or would be), like "/home/mygame/levels/one.lvl".

Returns int

A number for that set of classes, or 0 if they couldn't be found.

In Kinds of entity, with entityclasscount, entityclassname, entityclassinfo, entityclassfieldcount, entityclassfield.