add api
This commit is contained in:
34
docs/api/actor.md
Normal file
34
docs/api/actor.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# 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**
|
||||
|
||||
[
|
||||
{}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user