strafe-client/src/event.rs

15 lines
301 B
Rust
Raw Normal View History

2023-09-08 03:03:53 +00:00
pub struct EventStruct {
pub time: crate::body::TIME,
pub event: EventEnum,
}
2023-09-08 01:35:49 +00:00
pub enum EventEnum {
2023-09-08 03:03:53 +00:00
CollisionStart,//(Collideable),//Body::CollisionStart
CollisionEnd,//(Collideable),//Body::CollisionEnd
StrafeTick,
Jump,
2023-09-07 22:41:15 +00:00
}
pub trait EventTrait {
2023-09-08 03:03:53 +00:00
fn next_event(&self) -> Option<EventStruct>;
2023-09-07 22:41:15 +00:00
}