Better json structure
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Road:
|
||||
def __init__(self, coordinates):
|
||||
def __init__(self, coordinates, road_configuration):
|
||||
self.coordinates = coordinates # List of tuples (x1, y1, z1) in order
|
||||
self.road_type = road_type # 'road', 'highway'
|
||||
self.road_configuration = road_configuration # 'road', 'highway'
|
||||
|
||||
def place_roads(self):
|
||||
pass
|
||||
|
||||
10
networks/roads/roads.json
Normal file
10
networks/roads/roads.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"high_way": {
|
||||
"3": {"classic_lane": 3}
|
||||
|
||||
},
|
||||
"broken_white": {
|
||||
"3": {"white_concrete": 3, "white_concrete_powder": 1},
|
||||
"1": {"None": 1}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user