Trait GamePlugin

Source
pub trait GamePlugin {
    // Required methods
    fn initialize(&self, app: &mut App);
    fn register(&self, world: &mut World, prefabs: PrefabData);
    unsafe fn spawn_custom(
        &self,
        entity: &mut EntityMut<'_>,
        custom: *const u8,
        custom_len: usize,
        custom_state: *const u8,
        custom_state_len: usize,
    );
}

Required Methods§

Source

fn initialize(&self, app: &mut App)

Source

fn register(&self, world: &mut World, prefabs: PrefabData)

Source

unsafe fn spawn_custom( &self, entity: &mut EntityMut<'_>, custom: *const u8, custom_len: usize, custom_state: *const u8, custom_state_len: usize, )

Implementors§