routing support for excludables (not yet in UI)
This commit is contained in:
parent
1e0346a54d
commit
1c10ce443a
4 changed files with 41 additions and 15 deletions
|
@ -352,7 +352,7 @@ class GraphLevel():
|
|||
im.save(graph_filename)
|
||||
|
||||
# Routing
|
||||
def build_routers(self, allowed_ctypes):
|
||||
def build_routers(self, allowed_ctypes, public, nonpublic, avoid, include):
|
||||
routers = {}
|
||||
|
||||
empty_distances = np.empty(shape=(len(self.room_transfer_points),) * 2, dtype=np.float16)
|
||||
|
@ -364,7 +364,7 @@ class GraphLevel():
|
|||
room_transfers[:] = -1
|
||||
|
||||
for i, room in enumerate(self.rooms):
|
||||
router = room.build_router(allowed_ctypes)
|
||||
router = room.build_router(allowed_ctypes, public, nonpublic, avoid, include)
|
||||
routers[room] = router
|
||||
|
||||
room_distances = empty_distances.copy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue