16 IL_EACH(list, it.classname == cname,
18 if(!parent || parent == it.owner){
20 if(!oldest || oldesttime > it.creationtime)
23 oldesttime = it.creationtime;
29 if (c <= limit)
break;
40 child.creationtime = oldChild.creationtime;
47 child.creationtime =
time;
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
ERASEABLE void IL_REMOVE(IntrusiveList this, entity it)
Remove any element, anywhere in the list.
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
#define IL_EACH(this, cond, body)
void LimitedChildrenRubble(IntrusiveList list, string cname, int limit, void(entity) deleteproc, entity parent)
entity ListNewChildRubble(IntrusiveList list, entity child)
entity ReplaceOldListedChildRubble(IntrusiveList list, entity child, entity oldChild)