RoutinesBuilder
Builds an NPC’s routines: routine each, on an event, and start.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RoutinesBuilder(
name):RoutinesBuilder
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
Returns
Section titled “Returns”RoutinesBuilder
Methods
Section titled “Methods”on(
event,name):RoutinesBuilder
Starts the routine name on event, in every routine but the one
an event started, which finishes first.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event |
NpcEvent |
name |
string |
Returns
Section titled “Returns”RoutinesBuilder
routine()
Section titled “routine()”routine(
name,build):RoutinesBuilder
Declares the routine name: build lists its steps.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
build |
(routine) => Routine |
Returns
Section titled “Returns”RoutinesBuilder
start()
Section titled “start()”start(
name):Routines
Ends the builder: the NPC starts in the routine name.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |