mud/lib/doc/efun/all/objects
2020-09-06 05:43:07 -07:00

26 lines
833 B
Plaintext

objects - return an array of all loaded objects
object array objects();
object array objects( string func, object ob );
object array objects( function f);
An array of every object loaded on the mud is returned by objects(). Note
that if the system's maximum array size is set too low, objects() will
truncate its array, in which case it might not be too useful.
If the optional `func' and `ob' parameters are given, then ob->func()
is called with each loaded object as an argument. If the function returns
nonzero, then that object is returned by objects(), otherwise it isn't.
If 'f' is given, it will be called on all the objects as above. For
example, objects( (: clonep :) ) returns a list of all the clones in
existence.
See also:
livings,
users
Tim Hollebeek Beek@ZorkMUD, Lima Bean, IdeaExchange, and elsewhere