Skip to main content

Crate traaains

Crate traaains 

Source
Expand description

Trains simulator, implemented using bevy.

Currently relying on nightly Rust due to using some unfinished features (mainly generic_const_exprs).

Modules§

editor
Manages track editing, placing signals, etc.
game
Basic “game” utilities, like managing a camera, updating stored cursor position, etc.
shape
Module containing the shapes that back track segments.
sim
Module containing the main parts of the simulation.
ui
Module containing all of the app’s UI.
utils
Collection of miscellaneous things that didn’t fit anywhere else.

Structs§

AssetsManager

Enums§

AppState
Main state. All other states depend on this. This will handle switching between any “main screen” and the actual simulation in the future.
AssetType

Functions§

main 🔒
setup_assets_manager