2024-07-08 00:44:20 +00:00
|
|
|
#ifndef SCENE_H
|
|
|
|
#define SCENE_H
|
|
|
|
|
|
|
|
|
2024-09-23 17:43:16 +00:00
|
|
|
typedef struct State State;
|
|
|
|
typedef struct Scene {
|
2024-07-08 00:44:20 +00:00
|
|
|
char *id;
|
2024-09-23 17:43:16 +00:00
|
|
|
void (*tick)(State *);
|
|
|
|
void (*end)(State *);
|
|
|
|
} Scene;
|
2024-07-08 00:44:20 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
#endif
|