fn my_runner(mut app: App) {
    println!("Type stuff into the console");
    for line in io::stdin().lock().lines() {
        {
            let mut input = app.world.get_resource_mut::<Input>().unwrap();
            input.0 = line.unwrap();
        }
        app.update();
    }
}
/// This example demonstrates you can create a custom runner (to update an app manually). It reads
/// lines from stdin and prints them from within the ecs.
This example demonstrates you can create a custom runner (to update an app manually). It reads
lines from stdin and prints them from within the ecs.
This example demonstrates you can create a custom runner ( to update an app manually ) . It reads lines from stdin and prints them from within the ecs .
fn my_runner(mut app: App) {
    println!("Type stuff into the console");
    for line in io::stdin().lock().lines() {
        {
            let mut input = app.world.get_resource_mut::<Input>().unwrap();
            input.0 = line.unwrap();
        }
        app.update();
    }
}
fn my_runner ( mut app : App ) { println ! ( " " ) ; for line in io :: stdin ( ) . lock ( ) . lines ( ) { { let mut input = app . world . get_resource_mut :: < Input > ( ) . unwrap ( ) ; input . 0 = line . unwrap ( ) ; } app . update ( ) ; } }
This example demonstrates you can create a custom runner (to update an app manually).
This example demonstrates you can create a custom runner ( to update an app manually ) .
app
App
app
App