mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-01 19:27:11 +03:00
15f6981b1d
and test runner.
25 lines
840 B
Rust
25 lines
840 B
Rust
use crate::{AgentID, CarID, ParkingSpot, PedestrianID};
|
|
use map_model::{BuildingID, BusStopID, IntersectionID, LaneID, Traversable};
|
|
use serde_derive::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]
|
|
pub enum Event {
|
|
CarReachedParkingSpot(CarID, ParkingSpot),
|
|
CarOrBikeReachedBorder(CarID, IntersectionID),
|
|
|
|
BusArrivedAtStop(CarID, BusStopID),
|
|
BusDepartedFromStop(CarID, BusStopID),
|
|
|
|
PedReachedParkingSpot(PedestrianID, ParkingSpot),
|
|
PedReachedBuilding(PedestrianID, BuildingID),
|
|
PedReachedBorder(PedestrianID, IntersectionID),
|
|
PedReachedBusStop(PedestrianID, BusStopID),
|
|
PedEntersBus(PedestrianID, CarID),
|
|
PedLeavesBus(PedestrianID, CarID),
|
|
|
|
BikeStoppedAtSidewalk(CarID, LaneID),
|
|
|
|
// TODO Remove this one
|
|
AgentEntersTraversable(AgentID, Traversable),
|
|
}
|