Better json structure

This commit is contained in:
2024-05-26 19:44:21 +02:00
parent 1543530488
commit 198c18173a
5 changed files with 29 additions and 17 deletions

View File

@@ -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
View File

@@ -0,0 +1,10 @@
{
"high_way": {
"3": {"classic_lane": 3}
},
"broken_white": {
"3": {"white_concrete": 3, "white_concrete_powder": 1},
"1": {"None": 1}
}
}