use crate::core::event_bus::{BoxedEvent, Event};
#[derive(Default)]
pub struct ActionQueue {
pub hovered: bool,
pub events: Vec<BoxedEvent>,
}
impl ActionQueue {
pub fn new() -> Self {
Self::default()
}
pub fn send<E: Event>(&mut self, event: E) {
self.events.push(Box::new(event));
}
}