Trait rinecs::SystemThreadLocal[][src]

pub trait SystemThreadLocal {
    fn run(
        &mut self,
        entities: EntitiesThreadLocal<'_>,
        resources: ResourcesThreadLocal<'_>
    ); fn checks(_: &mut StorageRegistry) -> Option<SystemConditionThreadLocal>
    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 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 only run from the main thread but in parallel with Send systems.

Any function that receives an EntitiesThreadLocal and a ResourcesThreadLocal parameter in that order can be added as a SystemThreadLocal to the world.

Required methods

fn run(
    &mut self,
    entities: EntitiesThreadLocal<'_>,
    resources: ResourcesThreadLocal<'_>
)
[src]

Loading content...

Provided methods

fn checks(_: &mut StorageRegistry) -> Option<SystemConditionThreadLocal> where
    Self: Sized
[src]

fn name() -> Option<&'static str> where
    Self: Sized
[src]

fn runs_on_gpu() -> bool where
    Self: Sized
[src]

fn before() -> Vec<SystemId> where
    Self: Sized
[src]

fn after() -> Vec<SystemId> where
    Self: Sized
[src]

fn updates() -> Vec<TypeId> where
    Self: Sized
[src]

fn needs() -> Vec<TypeId> where
    Self: Sized
[src]

fn reads() -> Vec<TypeId> where
    Self: Sized
[src]

fn writes() -> Vec<TypeId> where
    Self: Sized
[src]

fn file_line_info(&self) -> &'static str[src]

Loading content...

Implementations on Foreign Types

impl<D: 'static, S: SystemWithDataThreadLocal<D>> SystemThreadLocal for (S, D)[src]

Loading content...

Implementors

impl<F: FnMut(EntitiesThreadLocal<'_>, ResourcesThreadLocal<'_>)> SystemThreadLocal for F[src]

Loading content...