Module openrailwaymap_exporter::railway_objects
source · Expand description
The railway_objects module contains traits for different types of railway objects,
their positions within an internal model, target management, and geographical locations.
Structs
- A Train struct representing a train in the railway system.
Traits
- The
GeoLocationtrait provides a method for obtaining the geographical location of a railway object. - The Movable trait
- The
MultipleTargetstrait provides methods for managing a list of targets for a railway object. - The
NextTargettrait provides methods for managing a single target for a railway object. - The
RailwayObjecttrait represents the basic properties of a railway object, including a unique identifier and a position within an internal model. Objects implementing this trait can be used in a railway simulation.