Hello folks,
I am working on a new version of my in which I improve basically any aspect of the game. Each spaceship has a set of rooms that are connected to each other. Characters can walk freely to any non-obstructed area in the spaceship to repair stuff, heal their colleagues, etc.

Until now, I use pre-generated graphs for each room available in the game. When the game starts, I import the pre-loaded graphs and connect them on the edges. This works perfectly fine. However, I stored the graphs in generated source code files resulting very very large …