fluffos/docs/efun/objects/objects.md

34 lines
898 B
Markdown
Raw Permalink Normal View History

2018-12-30 16:43:04 -08:00
---
title: objects / objects
slug: /efun/objects/objects
2018-12-30 16:43:04 -08:00
---
2023-11-25 09:50:24 -08:00
# objects
2018-12-30 16:43:04 -08:00
### NAME
2018-12-30 16:59:01 -08:00
objects - return an array of all loaded objects
2018-12-30 16:43:04 -08:00
### SYNOPSIS
2018-12-30 16:59:01 -08:00
object *objects( void | string func | function f );
2018-12-30 16:43:04 -08:00
### DESCRIPTION
2018-12-30 16:59:01 -08:00
2018-12-30 16:43:04 -08:00
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' parameter is given, then func() in this_object()
2018-12-30 16:43:04 -08:00
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
2018-12-30 16:59:01 -08:00
livings(3), users(3)