townengine/apps/scenery/scenes/scene.h

17 lines
233 B
C

#ifndef SCENE_H
#define SCENE_H
typedef struct State State;
typedef struct Scene {
char *id;
void (*tick)(State *);
void (*end)(State *);
} Scene;
void switch_to(State *state, Scene *(*scene_func)(State *));
#endif