Struct specs_sprite::SpriteSystem
source · pub struct SpriteSystem<T, I>(_);
Implementations§
source§impl<T, I> SpriteSystem<T, I>
impl<T, I> SpriteSystem<T, I>
Trait Implementations§
source§impl<T, I> Default for SpriteSystem<T, I>
impl<T, I> Default for SpriteSystem<T, I>
source§impl<'a, T, I> System<'a> for SpriteSystem<T, I>where
T: 'static + Float + Send + Sync,
I: 'static + Send + Sync,
impl<'a, T, I> System<'a> for SpriteSystem<T, I>where
T: 'static + Float + Send + Sync,
I: 'static + Send + Sync,
§type SystemData = (Read<'a, EntitiesRes, DefaultProvider>, Write<'a, SpriteGuide<T, I>, SpriteGuideSetupHandler<T, I>>, Storage<'a, Sprite<T, I>, FetchMut<'a, MaskedStorage<Sprite<T, I>>>>)
type SystemData = (Read<'a, EntitiesRes, DefaultProvider>, Write<'a, SpriteGuide<T, I>, SpriteGuideSetupHandler<T, I>>, Storage<'a, Sprite<T, I>, FetchMut<'a, MaskedStorage<Sprite<T, I>>>>)
The resource bundle required to execute this system. Read more
source§fn run(&mut self, (entities, sprite_guide, sprites): Self::SystemData)
fn run(&mut self, (entities, sprite_guide, sprites): Self::SystemData)
Executes the system with the required system
data. Read more
source§fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTime
Returns a hint how long the system needs for running.
This is used to optimize the way they’re executed (might
allow more parallelization). Read more
source§fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the
SystemData
.Auto Trait Implementations§
impl<T, I> RefUnwindSafe for SpriteSystem<T, I>where
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for SpriteSystem<T, I>where
I: Send,
T: Send,
impl<T, I> Sync for SpriteSystem<T, I>where
I: Sync,
T: Sync,
impl<T, I> Unpin for SpriteSystem<T, I>where
I: Unpin,
T: Unpin,
impl<T, I> UnwindSafe for SpriteSystem<T, I>where
I: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<'a, T> RunWithPool<'a> for Twhere
T: System<'a>,
impl<'a, T> RunWithPool<'a> for Twhere
T: System<'a>,
source§fn run(&mut self, res: &'a Resources, _: &ThreadPool)
fn run(&mut self, res: &'a Resources, _: &ThreadPool)
Runs the system/group of systems. Possibly in parallel depending
on how the structure is set up. Read more
source§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
source§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
source§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.source§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
source§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
source§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.