Function game::common::jump_to_time_upon_startup[][src]

pub fn jump_to_time_upon_startup(
    dt: Duration
) -> Box<dyn FnOnce(&mut EventCtx<'_>, &mut App) -> Vec<Transition<App>>>

If you want a simulation to start after midnight, pass the result of this to SandboxMode::async_new. It’s less visually overwhelming and more performant to continue with a loading screen than launching the jump-to-time UI. After a deadline of 0.5s, we will switch over to the jump-to-time UI so the user can cancel.