35 lines
448 B
Markdown
35 lines
448 B
Markdown
|
# actor
|
||
|
#### spawn(script, config, callback)
|
||
|
|
||
|
Create a new actor, using this actor as the master, initializing it with 'script' and with data (as a JSON or Nota file) from 'config'.
|
||
|
|
||
|
#### rm_pawn(pawn)
|
||
|
|
||
|
|
||
|
|
||
|
#### timers
|
||
|
**array**
|
||
|
|
||
|
[]
|
||
|
|
||
|
#### kill()
|
||
|
|
||
|
Remove this actor and all its padawans from existence.
|
||
|
|
||
|
#### interval(fn, seconds)
|
||
|
|
||
|
|
||
|
|
||
|
#### delay(fn, seconds)
|
||
|
|
||
|
Call 'fn' after 'seconds' with 'this' set to the actor.
|
||
|
|
||
|
#### padawans
|
||
|
**array**
|
||
|
|
||
|
[
|
||
|
{}
|
||
|
]
|
||
|
|
||
|
|