five-on-it / packages/world/src/pieces / parsePatrol
Function: parsePatrol()
parsePatrol(
node,text): [number,number][]
Defined in: packages/world/src/pieces.ts:488
The points of an NPC spawner's patrol text: x z pairs in the game's frame (m), separated by semicolons (10 0; 10 12); empty for none; throws naming the node for anything else.
Parameters
node
string
text
string
Returns
[number, number][]