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

registerAbility

registerAbility<Settings>(world, name, settings): Disposer

Registers an ability on world under name, where the room and the page each look it up; the return takes it away while it is still the one registered. The cast time is the release mark of the clip it plays, or its castSeconds where it plays none; both, or neither, throw.

Type Parameter
Settings extends AbilitySettings
Parameter Type
world World
name string
settings Settings & object

Disposer