abstreet/map_model/src/lib.rs

47 lines
1.6 KiB
Rust
Raw Normal View History

mod area;
2018-06-25 17:53:39 +03:00
mod building;
mod bus_stop;
pub mod connectivity;
mod edits;
2018-06-25 17:53:39 +03:00
mod intersection;
2018-07-24 05:31:15 +03:00
mod lane;
2018-06-27 23:17:15 +03:00
mod make;
2018-06-25 17:53:39 +03:00
mod map;
2019-09-18 03:14:09 +03:00
pub mod osm;
2018-07-09 00:04:19 +03:00
mod pathfind;
pub mod raw;
2018-07-24 17:28:11 +03:00
mod road;
2018-11-30 23:36:27 +03:00
mod stop_signs;
mod traffic_signals;
mod traversable;
2018-06-25 17:53:39 +03:00
mod turn;
pub use crate::area::{Area, AreaID, AreaType};
pub use crate::building::{Building, BuildingID, FrontPath, OffstreetParking};
pub use crate::bus_stop::{BusRoute, BusRouteID, BusStop, BusStopID};
pub use crate::edits::{EditCmd, EditEffects, EditIntersection, MapEdits, PermanentMapEdits};
pub use crate::intersection::{Intersection, IntersectionID, IntersectionType};
pub use crate::lane::{Lane, LaneID, LaneType, PARKING_SPOT_LENGTH};
pub use crate::make::RoadSpec;
pub use crate::map::Map;
2020-05-19 03:44:46 +03:00
pub use crate::pathfind::uber_turns::{IntersectionCluster, UberTurn};
pub use crate::pathfind::{Path, PathConstraints, PathRequest, PathStep};
2019-02-21 03:17:30 +03:00
pub use crate::road::{DirectedRoadID, Road, RoadID};
pub use crate::stop_signs::{ControlStopSign, RoadWithStopSign};
pub use crate::traffic_signals::{ControlTrafficSignal, Phase};
pub use crate::traversable::{Position, Traversable};
pub use crate::turn::{Turn, TurnGroup, TurnGroupID, TurnID, TurnPriority, TurnType};
use abstutil::Cloneable;
use geom::Distance;
// TODO Minimize uses of these!
pub const NORMAL_LANE_THICKNESS: Distance = Distance::const_meters(2.5);
pub const SIDEWALK_THICKNESS: Distance = Distance::const_meters(1.5);
impl Cloneable for BusRouteID {}
2018-12-05 02:05:53 +03:00
impl Cloneable for ControlTrafficSignal {}
impl Cloneable for IntersectionID {}
2019-06-08 00:59:23 +03:00
impl Cloneable for LaneType {}
2019-03-21 03:12:55 +03:00
impl Cloneable for MapEdits {}
impl Cloneable for raw::RestrictionType {}