Struct oxygengine_core::ecs::DefaultBatchControllerSystem [−][src]
pub struct DefaultBatchControllerSystem<'a, 'b> { /* fields omitted */ }
The DefaultBatchControllerSystem
is a simple implementation that will
dispatch the inner dispatcher one time.
Usually you want to create your own Dispatcher
.
Is safe to implement Send
and Sync
because the BatchAccessor
keep
tracks of all used resources and thus the System
can be safely executed in
multi thread.
Trait Implementations
impl<'a, 'b> BatchController<'a, 'b> for DefaultBatchControllerSystem<'a, 'b>
[src]
impl<'a, 'b> BatchController<'a, 'b> for DefaultBatchControllerSystem<'a, 'b>
[src]type BatchSystemData = ()
This associated type has to contain all resources batch controller uses directly. Read more
pub unsafe fn create(
accessor: BatchAccessor,
dispatcher: Dispatcher<'a, 'b>
) -> DefaultBatchControllerSystem<'a, 'b>
[src]
accessor: BatchAccessor,
dispatcher: Dispatcher<'a, 'b>
) -> DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> Send for DefaultBatchControllerSystem<'a, 'b>
[src]
impl<'a, 'b> Send for DefaultBatchControllerSystem<'a, 'b>
[src]Is safe to implement Send
and Sync
because the BatchAccessor
keep
tracks of all used resources and thus the System
can be safely executed in
multi thread.
impl<'a, '_, '_> System<'a> for DefaultBatchControllerSystem<'_, '_>
[src]
impl<'a, '_, '_> System<'a> for DefaultBatchControllerSystem<'_, '_>
[src]type SystemData = BatchUncheckedWorld<'a>
The resource bundle required to execute this system. Read more
pub fn run(
&mut self,
data: <DefaultBatchControllerSystem<'_, '_> as System<'a>>::SystemData
)
[src]
&mut self,
data: <DefaultBatchControllerSystem<'_, '_> as System<'a>>::SystemData
)
pub fn running_time(&self) -> RunningTime
[src]
pub fn accessor(
&'c self
) -> AccessorCow<'a, 'c, DefaultBatchControllerSystem<'_, '_>>
[src]
&'c self
) -> AccessorCow<'a, 'c, DefaultBatchControllerSystem<'_, '_>>
pub fn setup(&mut self, world: &mut World)
[src]
pub fn dispose(self, world: &mut World)
[src]
Auto Trait Implementations
impl<'a, 'b> !RefUnwindSafe for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> !Sync for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> !Sync for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> Unpin for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> Unpin for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> !UnwindSafe for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> !UnwindSafe for DefaultBatchControllerSystem<'a, 'b>