2024-07-08 00:44:20 +00:00
|
|
|
#include "scene.h"
|
|
|
|
#include "../state.h"
|
|
|
|
|
|
|
|
|
2024-09-23 17:43:16 +00:00
|
|
|
void switch_to(State *state, Scene *(*scene_func)(State *)) {
|
2024-07-08 00:44:20 +00:00
|
|
|
state->next_scene = scene_func(state);
|
|
|
|
state->is_scene_switching = true;
|
|
|
|
}
|