2018-12-30 16:43:04 -08:00
|
|
|
---
|
|
|
|
|
title: objects / objects
|
Fix Docusaurus sidebar, broken links, and gh-pages CI (#1209)
* Reorder sidebar: Driver > CLI > Reference (LPC Language, Apply, EFUN, Concepts)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Fix Docusaurus build: broken links, duplicate routes, and gh-pages CI
- Strip .html from all markdown link targets (51 files) for Docusaurus URL routing
- Add slug: frontmatter to 4 files whose names match their parent directory
(interactive.md, objects.md, README.md, build.md) to prevent Docusaurus's
category-index convention from creating duplicate routes
- Fix one missed .html link in zh-CN/build/index.md
- Move onBrokenMarkdownLinks to markdown.hooks (Docusaurus v4 deprecation)
- Update gh-pages.yml: rename to Docusaurus, use node 22, correct build path
(docs/build instead of docs/.vitepress/dist)
Build now completes with [SUCCESS] and zero warnings or broken links.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 21:01:21 -07:00
|
|
|
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
|
|
|
|
2021-12-03 06:22:10 +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.
|
|
|
|
|
|
2021-12-03 06:22:10 +08:00
|
|
|
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)
|
2019-10-19 01:03:49 -07:00
|
|
|
|