townengine/apps/demos/scenery/scenes/scene.c

9 lines
188 B
C
Raw Permalink Normal View History

2024-07-08 00:44:20 +00:00
#include "scene.h"
#include "../state.h"
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;
}