2024-07-08 00:44:20 +00:00
|
|
|
#ifndef STATE_H
|
|
|
|
#define STATE_H
|
|
|
|
|
|
|
|
|
2024-09-16 13:17:00 +00:00
|
|
|
#include "twn_game_api.h"
|
2024-07-08 00:44:20 +00:00
|
|
|
|
2024-09-16 13:17:00 +00:00
|
|
|
#include <stdbool.h>
|
2024-07-08 00:44:20 +00:00
|
|
|
|
2024-09-23 17:43:16 +00:00
|
|
|
|
|
|
|
typedef struct Scene Scene;
|
|
|
|
|
|
|
|
typedef struct State {
|
|
|
|
Context *ctx;
|
|
|
|
Scene *scene;
|
|
|
|
Scene *next_scene;
|
2024-07-08 00:44:20 +00:00
|
|
|
bool is_scene_switching;
|
2024-09-23 17:43:16 +00:00
|
|
|
} State;
|
2024-07-08 00:44:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|