five-on-it / packages/world/src/pieces / parseSchedule
Function: parseSchedule()
parseSchedule(
node,text):ScheduleDef[]
Defined in: packages/world/src/pieces.ts:529
The hours of an NPC spawner's schedule text: entries separated by semicolons, each a time (HH:MM), an activity (goto, post, patrol, home, break) and its points as x z pairs in the game's frame (one for goto, post, home and break, one or more for a patrol): 07:30 post 4 10; 12:00 patrol 4 10 4 22; 18:00 home -6 22. A timed hour says how long it lasts after its time (+10, minutes) and may recur (/60, every so many minutes): 07:40/60+10 break 2 6 is a ten-minute break every hour at twenty to (see ScheduleDef). Sorted by time; throws naming the node for anything else.
Parameters
node
string
text
string