pub fn init_with_graph(graph: RailwayGraph)
Expand description

Initializes the Bevy application with a given RailwayGraph.

This function sets up the Bevy application with the required plugins, resources, and systems. It inserts the provided RailwayGraph into the AppResource and starts the Bevy application.

Arguments

  • graph - A RailwayGraph to display in the application.