Trait rin::ecs::SystemOnce [−][src]
pub trait SystemOnce: Send { pub fn run(self, entities: Entities<'_>, resources: Resources<'_>); pub fn checks(
&mut StorageRegistry
) -> Option<SystemConditionElse<SystemOnceRunner>> { ... } pub fn name() -> Option<&'static str> { ... } 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 any thread in parallel with other 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
Loading content...Provided methods
pub fn checks(
&mut StorageRegistry
) -> Option<SystemConditionElse<SystemOnceRunner>>
[src]
&mut StorageRegistry
) -> Option<SystemConditionElse<SystemOnceRunner>>
pub fn name() -> Option<&'static str>
[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
Loading content...