gizmo-core 0.1.4

A custom ECS and physics engine aimed for realistic simulations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::World;
use crate::entity::Entity;

pub type DespawnHook = fn(&mut World, Entity);

pub type AddHook = fn(&mut World, Entity);
pub type RemoveHook = fn(&mut World, Entity);
pub type SetHook = fn(&mut World, Entity);

#[derive(Default, Clone)]
pub struct ComponentHooks {
    pub on_add: Vec<AddHook>,
    pub on_remove: Vec<RemoveHook>,
    pub on_set: Vec<SetHook>,
}