Ovis_Entity_Parent_Group_Count()
Abstract
Returns the number of groups to which an entity belongs.
Syntax
Ovis_Entity_Parent_Group_Count (ent_ptr)
| Argument | Type | Description |
|---|---|---|
ent_ptr |
OvisT_Entity * |
Ovis entity |
Return Type
unsigned int
Number of parent groups
Header
ovis_entity.h
Details
This function returns the number of groups to which an entity belongs.
Example
OvisT_Group * group_ptr;
unsigned int count, i;
OvisT_Entity * ent_ptr;
/* …groups created elsewhere */
count = Ovis_Entity_Parent_Group_Count (ent_ptr);
for (i = 0; i < count; i++)
{
group_ptr = Ovis_Entity_Parent_Group_Nth (ent_ptr, i);
/* … do something with group */
}
Errors
- Entity is NIL.
Reference
- Use the function
Ovis_Entity_Parent_Group_Nth()to get a parent group of an entity.