Object
An Object is a validated handle for a native database object. Create one with
mux.object. Handles become invalid if their object is destroyed
or its database slot is reused. Two handles for the same live object compare
equal, and tostring(object) produces a value such as object(#123).
Properties
All properties are read-only.
| Property | Type | Description |
|---|---|---|
dbref | number | The native database reference. |
name | string | The object’s current name. |
type | string | room, thing, exit, or player. |
description | string or nil | The native description, if set. |
inside_description | string or nil | The native inside description, if set. |
Methods
| Method | Description |
|---|---|
Object:contents | Lists directly contained objects. |
Object:contents_visible | Applies native content visibility rules. |
Object:exits | Lists directly attached exits. |
Object:exits_visible | Applies native exit visibility rules. |
Object:enter_lock_passes | Tests an exit’s traversal lock. |
Object:attribute | Opens the native attribute interface. |
Object:state | Opens a persistent state namespace. |