Macaw OS C reference

Function levelentitycount

#include <macawlevel.h>
int levelentitycount(int level, const char *class_);

Tells you how many entities of a class a level has.

Parameters

levelint
The level.
class_const char *
The class, like "pickup", or NULL for every entity.

Returns int

How many there are.

In Entities, with levelentity, levelentityhas, levelentitynum, levelentitytext, levelentityfield.