mux.world.types

Provides immutable typed constants for native database object kinds.

Constants

ConstantDescription
mux.world.types.ROOMA room.
mux.world.types.THINGA thing.
mux.world.types.EXITAn exit.
mux.world.types.PLAYERA player.

Constants compare by native type identity within one Lua runtime. Their string forms are their canonical uppercase names. Unknown lookups and attempted mutation raise mux.arg.invalid.

Use these constants with create_object, list_objects, Object:type, and Object:contents rather than comparing or passing magic strings. PLAYER identifies existing players but is not accepted by create_object.

See Also