SpawnWorld

Trait SpawnWorld 

Source
pub trait SpawnWorld {
    // Required methods
    fn spawn_with(&mut self, _: impl Spawn) -> EntityWorldMut<'_>;
    fn spawn_once_with(&mut self, _: impl SpawnOnce) -> EntityWorldMut<'_>;
    fn spawn_key(&mut self, key: impl Into<SpawnKey>) -> EntityWorldMut<'_>;
    fn spawn_key_with(
        &mut self,
        key: impl Into<SpawnKey>,
        bundle: impl Bundle,
    ) -> EntityWorldMut<'_>;
}
๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Expand description

Trait used to spawn spawnables either directly or via a SpawnKey using World.

Required Methodsยง

Source

fn spawn_with(&mut self, _: impl Spawn) -> EntityWorldMut<'_>

๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Source

fn spawn_once_with(&mut self, _: impl SpawnOnce) -> EntityWorldMut<'_>

๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Source

fn spawn_key(&mut self, key: impl Into<SpawnKey>) -> EntityWorldMut<'_>

๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Source

fn spawn_key_with( &mut self, key: impl Into<SpawnKey>, bundle: impl Bundle, ) -> EntityWorldMut<'_>

๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Typesยง

Sourceยง

impl SpawnWorld for World

Sourceยง

fn spawn_with(&mut self, spawnable: impl Spawn) -> EntityWorldMut<'_>

๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Sourceยง

fn spawn_once_with(&mut self, spawnable: impl SpawnOnce) -> EntityWorldMut<'_>

๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Sourceยง

fn spawn_key(&mut self, key: impl Into<SpawnKey>) -> EntityWorldMut<'_>

๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Sourceยง

fn spawn_key_with( &mut self, key: impl Into<SpawnKey>, bundle: impl Bundle, ) -> EntityWorldMut<'_>

๐Ÿ‘ŽDeprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details

Implementorsยง