Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get state of executed system. #266

Open
N4tus opened this issue Jun 7, 2021 · 0 comments
Open

get state of executed system. #266

N4tus opened this issue Jun 7, 2021 · 0 comments

Comments

@N4tus
Copy link

N4tus commented Jun 7, 2021

It is possible to get the state of an executed system back out?
Something like this?

#[system]
fn example(#[state] s: &mut u32) {}

fn test(){
    let sys = example_system(0);
    let mut schedule = Schedule::builder()
        .add_system(&mut sys)
        .build();
   schedule.execute(world, resources);
   let s = sys.states().s();
}

Specifics can change, it is about the general concept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant