Function levelentityfield
#include <macawlevel.h>int levelentityfield(
int level,
const char *class_,
int i,
int k,
char *buf,
int size
);
Gives the name of one of an entity's fields, so you can go through them all. They come in alphabetical order, and "class" is one of them.
Parameters
levelint- The level.
class_const char *- The class, or NULL for every entity.
iint- Which one of them, from 0.
kint- Which field, from 0.
bufchar *- Where the field's name goes, a
chararray. sizeint- How many bytes
bufholds.
Returns int
The length of the name, or 0 once there are no more fields.
In Entities, with levelentitycount, levelentity, levelentityhas, levelentitynum, levelentitytext.