Trait rinecs::CreationSystem [−][src]
pub trait CreationSystem { fn run(
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
); fn checks(_: &mut StorageRegistry) -> Option<SystemConditionCreation>
where
Self: Sized, { ... } fn name() -> Option<&'static str>
where
Self: Sized, { ... } fn runs_on_gpu() -> bool
where
Self: Sized, { ... } fn before() -> Vec<SystemId>
where
Self: Sized, { ... } fn after() -> Vec<SystemId>
where
Self: Sized, { ... } fn updates() -> Vec<TypeId>
where
Self: Sized, { ... } fn needs() -> Vec<TypeId>
where
Self: Sized, { ... } fn creates() -> Vec<TypeId>
where
Self: Sized, { ... } fn reads() -> Vec<TypeId>
where
Self: Sized, { ... } fn writes() -> Vec<TypeId>
where
Self: Sized, { ... } fn file_line_info(&self) -> &'static str { ... } }
Trait for systems that can create entities and resources.
These systems will run in the main thread and always alone with nothing else running in parallel
Required methods
fn run(
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
[src]
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
Provided methods
fn checks(_: &mut StorageRegistry) -> Option<SystemConditionCreation> where
Self: Sized,
[src]
Self: Sized,
fn name() -> Option<&'static str> where
Self: Sized,
[src]
Self: Sized,
fn runs_on_gpu() -> bool where
Self: Sized,
[src]
Self: Sized,
fn before() -> Vec<SystemId> where
Self: Sized,
[src]
Self: Sized,
fn after() -> Vec<SystemId> where
Self: Sized,
[src]
Self: Sized,
fn updates() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn needs() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn creates() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn reads() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn writes() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn file_line_info(&self) -> &'static str
[src]
Implementations on Foreign Types
impl<D: 'static, S: CreationSystemWithData<D>> CreationSystem for (S, D)
[src]
impl<D: 'static, S: CreationSystemWithData<D>> CreationSystem for (S, D)
[src]fn run(
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
[src]
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
fn checks(entities: &mut StorageRegistry) -> Option<SystemConditionCreation> where
Self: Sized,
[src]
Self: Sized,
fn name() -> Option<&'static str> where
Self: Sized,
[src]
Self: Sized,
fn runs_on_gpu() -> bool where
Self: Sized,
[src]
Self: Sized,
fn before() -> Vec<SystemId> where
Self: Sized,
[src]
Self: Sized,
fn after() -> Vec<SystemId> where
Self: Sized,
[src]
Self: Sized,
fn updates() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn needs() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn creates() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn reads() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn writes() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn file_line_info(&self) -> &'static str
[src]
Implementors
impl<F: FnMut(EntitiesCreation<'_>, ResourcesCreation<'_>)> CreationSystem for F
[src]
impl<F: FnMut(EntitiesCreation<'_>, ResourcesCreation<'_>)> CreationSystem for F
[src]fn run(
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
[src]
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)