Trait rin::ecs::CreationSystem [−][src]
pub trait CreationSystem { pub fn run(
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
); pub fn checks(
&mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn CreationSystem + 'static, Global>>> { ... } pub fn name() -> Option<&'static str> { ... } pub fn runs_on_gpu() -> bool { ... } pub fn before() -> Vec<SystemId, Global>ⓘ { ... } pub fn after() -> Vec<SystemId, Global>ⓘ { ... } pub fn updates() -> Vec<TypeId, Global>ⓘ { ... } pub fn needs() -> Vec<TypeId, Global>ⓘ { ... } pub fn creates() -> Vec<TypeId, Global>ⓘ { ... } pub fn reads() -> Vec<TypeId, Global>ⓘ { ... } pub fn writes() -> Vec<TypeId, Global>ⓘ { ... } pub 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
pub fn run(
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
[src]
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
Provided methods
pub fn checks(
&mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn CreationSystem + 'static, Global>>>
[src]
&mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn CreationSystem + 'static, Global>>>
pub fn name() -> Option<&'static str>
[src]
pub fn runs_on_gpu() -> bool
[src]
pub fn before() -> Vec<SystemId, Global>ⓘ
[src]
pub fn after() -> Vec<SystemId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn creates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn reads() -> Vec<TypeId, Global>ⓘ
[src]
pub fn writes() -> Vec<TypeId, Global>ⓘ
[src]
pub fn file_line_info(&self) -> &'static str
[src]
Implementations on Foreign Types
impl<D, S> CreationSystem for (S, D) where
D: 'static,
S: CreationSystemWithData<D>,
[src]
impl<D, S> CreationSystem for (S, D) where
D: 'static,
S: CreationSystemWithData<D>,
[src]pub fn run(
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
[src]
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
pub fn checks(
entities: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn CreationSystem + 'static, Global>>> where
(S, D): Sized,
[src]
entities: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn CreationSystem + 'static, Global>>> where
(S, D): Sized,
pub fn name() -> Option<&'static str> where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn runs_on_gpu() -> bool where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn before() -> Vec<SystemId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn after() -> Vec<SystemId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn updates() -> Vec<TypeId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn needs() -> Vec<TypeId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn creates() -> Vec<TypeId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn reads() -> Vec<TypeId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn writes() -> Vec<TypeId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn file_line_info(&self) -> &'static str
[src]
Implementors
impl CreationSystem for create_missing_light_matrices
[src]
impl CreationSystem for create_missing_light_matrices
[src]pub fn name() -> Option<&'static str>
[src]
pub fn runs_on_gpu() -> bool
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn creates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn run(
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
[src]
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
impl CreationSystem for upload_gpu_resources
[src]
impl CreationSystem for upload_gpu_resources
[src]impl<F> CreationSystem for F where
F: FnMut(EntitiesCreation<'_>, ResourcesCreation<'_>),
[src]
impl<F> CreationSystem for F where
F: FnMut(EntitiesCreation<'_>, ResourcesCreation<'_>),
[src]pub fn run(
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
[src]
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
impl<V, B> CreationSystem for GeometryUploader<V, B> where
B: 'static + Clone + BufferExt<u8> + Cast<u32> + Cast<V>,
V: VertexFormat + Clone + Copy + Debug + Send + 'static,
<B as Cast<u32>>::CastTo: 'static,
<B as Cast<u32>>::CastTo: BufferRangeMut<u32>,
<B as Cast<u32>>::CastTo: Clone,
<B as Cast<V>>::CastTo: 'static,
<B as Cast<V>>::CastTo: BufferRangeMut<V>,
<B as Cast<V>>::CastTo: WithBackend,
<B as Cast<V>>::CastTo: MapRange<V>,
<B as Cast<V>>::CastTo: Clone,
Allocator<B>: InternalCreation<B>,
Allocator<B>: Creation<B>,
Allocator<B>: Updater,
Allocator<V, B>: AllocatorFlags,
[src]
impl<V, B> CreationSystem for GeometryUploader<V, B> where
B: 'static + Clone + BufferExt<u8> + Cast<u32> + Cast<V>,
V: VertexFormat + Clone + Copy + Debug + Send + 'static,
<B as Cast<u32>>::CastTo: 'static,
<B as Cast<u32>>::CastTo: BufferRangeMut<u32>,
<B as Cast<u32>>::CastTo: Clone,
<B as Cast<V>>::CastTo: 'static,
<B as Cast<V>>::CastTo: BufferRangeMut<V>,
<B as Cast<V>>::CastTo: WithBackend,
<B as Cast<V>>::CastTo: MapRange<V>,
<B as Cast<V>>::CastTo: Clone,
Allocator<B>: InternalCreation<B>,
Allocator<B>: Creation<B>,
Allocator<B>: Updater,
Allocator<V, B>: AllocatorFlags,
[src]pub fn run(
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
[src]
&mut self,
entities: EntitiesCreation<'_>,
resources: ResourcesCreation<'_>
)
pub fn checks(
world: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn CreationSystem + 'static, Global>>>
[src]
world: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn CreationSystem + 'static, Global>>>