[][src]Struct oxygengine_core::prefab::PrefabManager

pub struct PrefabManager { /* fields omitted */ }

Implementations

impl PrefabManager[src]

pub fn register_component_factory<T>(&mut self, name: &str) where
    T: PrefabComponent
[src]

pub fn register_component_factory_proxy<T, P>(&mut self, name: &str) where
    P: Prefab,
    T: PrefabProxy<P> + Component + Send + Sync
[src]

pub fn unregister_component_factory(&mut self, name: &str)[src]

pub fn register_scene_template(
    &mut self,
    prefab: PrefabScene
) -> Result<(), PrefabError>
[src]

pub fn unregister_scene_template(&mut self, name: &str)[src]

pub fn find_template(&self, name: &str) -> Option<&PrefabScene>[src]

pub fn instantiate_world(
    &mut self,
    name: &str,
    world: &World
) -> Result<Vec<Entity>, PrefabError>
[src]

pub fn instantiate_direct(
    &mut self,
    name: &str,
    entities: &EntitiesRes,
    lazy_update: &LazyUpdate,
    state_token: StateToken
) -> Result<Vec<Entity>, PrefabError>
[src]

pub fn instantiate_system_data<'s>(
    &mut self,
    name: &str,
    (entities, lazy_update, lifecycle): &(Read<'s, EntitiesRes>, Read<'s, LazyUpdate>, ReadExpect<'s, AppLifeCycle>)
) -> Result<Vec<Entity>, PrefabError>
[src]

pub fn load_scene_from_prefab_world(
    &mut self,
    prefab: &PrefabScene,
    world: &World
) -> Result<Vec<Entity>, PrefabError>
[src]

pub fn load_scene_from_prefab_direct(
    &mut self,
    prefab: &PrefabScene,
    entities: &EntitiesRes,
    lazy_update: &LazyUpdate,
    state_token: StateToken
) -> Result<Vec<Entity>, PrefabError>
[src]

pub fn load_scene_from_prefab_system_data<'s>(
    &mut self,
    prefab: &PrefabScene,
    (entities, lazy_update, lifecycle): &(Read<'s, EntitiesRes>, Read<'s, LazyUpdate>, ReadExpect<'s, AppLifeCycle>)
) -> Result<Vec<Entity>, PrefabError>
[src]

Trait Implementations

impl Default for PrefabManager[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any, 
[src]

impl<T> TryDefault for T where
    T: Default
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,