Function entityclassinfo
#include <macawlevel.h>int entityclassinfo(
int classes,
const char *name,
const char *what,
char *buf,
int size
);
Gives one thing about a class, as text. A class nobody describes comes back as a plain grey box marked "unknown".
Parameters
classesint- A set of classes from
entityclasses, or a level's number. nameconst char *- The class's name, like
"pickup". whatconst char *"label","about","colour","shape","size"or"float"; or"system","generic","game"or"unknown", which give"true"if it's that kind.bufchar *- Where the text goes, a
chararray. sizeint- How many bytes
bufholds.
Returns int
The length of the text, or 0 if there's nothing (so 0 for a kind it isn't).
In Kinds of entity, with entityclasses, entityclasscount, entityclassname, entityclassfieldcount, entityclassfield.