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

@@ -94,10 +94,10 @@ block_list = ["blue_concrete", "red_concrete", "green_concrete",
coordinates = [(0, 0, 0), (0, 0, 10), (0, 0, 20)]
# with open('networks/lines/lines.json') as f:
# lines_type = json.load(f)
# l = Line.Line(coordinates, lines_type.get('solid_white'))
# print(l.get_surface())
with open('networks/lines/lines.json') as f:
lines_type = json.load(f)
l = Line.Line(coordinates, lines_type.get('solid_white'))
print(l.get_surface())
# with open('networks/lanes/lanes.json') as f:
# lanes_type = json.load(f)