ToonTownRewritten/toontown/election/pathd.py
2014-04-19 11:51:10 -06:00

11 lines
286 B
Python
Executable file

#!/usr/bin/env python2
# This is a "pathfinding daemon" for parallelism in the invasion.
import sys
from InvasionPathDataAI import pathfinder
while True:
navFrom, navTo, radius = input()
path = pathfinder.planPath(navFrom, navTo, radius)
print path
sys.stdout.flush()