registerBehaviour
registerBehaviour(
name,behaviour):void
Defined in: packages/engine/src/gameplay/harness.ts:217
Offers a behaviour to the devtools’ Add behaviour, and puts its trait in
dumpState under name. Only a behaviour whose component adds its
trait and nothing else: a trait added alone would run the rest of any
other without it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
behaviour |
Behaviour |
Returns
Section titled “Returns”void