Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

registerResource

registerResource(writer, handle): Disposer

Installs handle on the world writer sets up, so a character may be given it, a cost may name it and its bar may draw it there: what resources({ kinds }) does for each kind of its list, and what a plugin that owns a resource does in its setup, on the room and on every page. The return takes it off while it is still the one installed. A second resource under one name on one world throws, naming both, and one handle installed twice throws too.

Parameter Type
writer SetupWriter
handle ResourceHandle

Disposer