townengine/apps/platformer/scenes/scene.h

17 lines
233 B
C
Raw Normal View History

2024-07-08 00:44:20 +00:00
#ifndef SCENE_H
#define SCENE_H
typedef struct State State;
typedef struct Scene {
2024-07-08 00:44:20 +00:00
char *id;
void (*tick)(State *);
void (*end)(State *);
} Scene;
2024-07-08 00:44:20 +00:00
void switch_to(State *state, Scene *(*scene_func)(State *));
2024-07-08 00:44:20 +00:00
#endif