strafe-client/src/event.rs

10 lines
314 B
Rust
Raw Normal View History

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