#include "scene.h" #include "../state.h" void switch_to(State *state, Scene *(*scene_func)(State *)) { state->next_scene = scene_func(state); state->is_scene_switching = true; }