connect elevators and add ctypes elevator_up and elevator_down

This commit is contained in:
Laura Klünder 2016-12-18 00:26:00 +01:00
parent 6b0d3aeac2
commit 8a1f8bb290
6 changed files with 72 additions and 10 deletions

View file

@ -27,11 +27,10 @@ class Route:
if point.level and point.level != level:
routeparts.append(RoutePart(level, connections))
level = point.level
connections = []
connections = [connection]
if connections:
routeparts.append(RoutePart(level, connections))
print(routeparts)
return tuple(routeparts)