Trait rin::ecs::SystemOnceThreadLocal [−][src]
pub trait SystemOnceThreadLocal { pub fn run(
self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
); pub fn checks(
&mut StorageRegistry
) -> Option<SystemConditionElse<SystemOnceThreadLocalRunner>> { ... } 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 reads() -> Vec<TypeId, Global>ⓘ { ... } pub fn writes() -> Vec<TypeId, Global>ⓘ { ... } pub fn file_line_info(&self) -> &'static str { ... } }
Trait for systems that will run only once from the main thread but parallel with Send
systems.
Types implementing this trait must be Send
and are usually called Send
System
in the documentation.
Any FnOnce that receives an Entities
and a Resources
parameter in that order
can be added as a System
to the world.
Required methods
pub fn run(
self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
Provided methods
pub fn checks(
&mut StorageRegistry
) -> Option<SystemConditionElse<SystemOnceThreadLocalRunner>>
[src]
&mut StorageRegistry
) -> Option<SystemConditionElse<SystemOnceThreadLocalRunner>>
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 reads() -> Vec<TypeId, Global>ⓘ
[src]
pub fn writes() -> Vec<TypeId, Global>ⓘ
[src]
pub fn file_line_info(&self) -> &'static str
[src]
Implementors
impl<F> SystemOnceThreadLocal for F where
F: FnOnce(EntitiesThreadLocal<'_>, ResourcesThreadLocal<'_>) + Send,
[src]
impl<F> SystemOnceThreadLocal for F where
F: FnOnce(EntitiesThreadLocal<'_>, ResourcesThreadLocal<'_>) + Send,
[src]