use crate::components::component::UpdateFn;
use crate::components::ComponentId;
use crate::components::{Props, Event};
pub struct UpdateQueueEntry {
pub source_component: ComponentId,
pub update_function: UpdateFn,
pub update_result: Event,
pub props: Props,
}
impl UpdateQueueEntry {
pub fn new(source_component: u64, update_function: UpdateFn, update_result: Event, props: Props) -> Self {
UpdateQueueEntry {
source_component,
update_function,
update_result,
props,
}
}
}