Skip to content

Instantly share code, notes, and snippets.

@danielschmid
Created January 3, 2024 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielschmid/71e537787f9cb3fc89bd6f44f0216fe9 to your computer and use it in GitHub Desktop.
Save danielschmid/71e537787f9cb3fc89bd6f44f0216fe9 to your computer and use it in GitHub Desktop.
space.json
{
"buildings": [
{
"id": "building1",
"name": "Main Building",
"floors": [
{
"id": "ground_floor",
"name": "Ground Floor",
"spaces": [
{
"id": "corridor_a",
"type": "corridor",
"name": "Corridor A",
"coordinates": {
"x": 10,
"y": 0,
"z": 0
},
"doors": [
{
"id": "door1",
"name": "Door 1",
"coordinates": {
"x": 10,
"y": 5,
"z": 0
},
"connects_to": "space_b"
}
]
},
{
"id": "space_b",
"type": "room",
"name": "Space B",
"coordinates": {
"x": 20,
"y": 0,
"z": 0
},
"doors": [
{
"id": "door1",
"name": "Door 1",
"coordinates": {
"x": 20,
"y": 5,
"z": 0
},
"connects_to": "corridor_a"
}
]
},
{
"id": "space_c",
"type": "room",
"name": "Space C",
"coordinates": {
"x": 15,
"y": 0,
"z": 0
},
"doors": []
},
{
"id": "room_d",
"type": "room",
"name": "Room D",
"coordinates": {
"x": 10,
"y": 0,
"z": 1
},
"doors": []
}
],
"connections": [
{
"source": "corridor_a",
"target": "space_b",
"relationship": "connects",
"distance": 5
},
{
"source": "corridor_a",
"target": "space_c",
"relationship": "connects",
"distance": 8
},
{
"source": "corridor_a",
"target": "room_d",
"relationship": "connects",
"distance": 15
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment