17 lines
240 B
C
17 lines
240 B
C
|
#ifndef SCENE_H
|
||
|
#define SCENE_H
|
||
|
|
||
|
|
||
|
struct state;
|
||
|
struct scene {
|
||
|
char *id;
|
||
|
void (*tick)(struct state *);
|
||
|
void (*end)(struct state *);
|
||
|
};
|
||
|
|
||
|
|
||
|
void switch_to(struct state *state, struct scene *(*scene_func)(struct state *));
|
||
|
|
||
|
|
||
|
#endif
|