Struct oxygengine_core::ecs::DefaultBatchControllerSystem [−][src]
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]
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]
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]
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> !Sync for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> Unpin for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> !UnwindSafe for DefaultBatchControllerSystem<'a, 'b>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
pub fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Resource for T where
T: Any, [src]
T: Any,
impl<'a, T> RunNow<'a> for T where
T: System<'a>, [src]
T: System<'a>,
pub fn run_now(&mut self, world: &'a World)[src]
pub fn setup(&mut self, world: &mut World)[src]
pub fn dispose(self: Box<T, Global>, world: &mut World)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,