diff options
Diffstat (limited to 'src/text/action.h')
-rw-r--r-- | src/text/action.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/text/action.h b/src/text/action.h new file mode 100644 index 0000000..d77b3ef --- /dev/null +++ b/src/text/action.h @@ -0,0 +1,24 @@ +#ifndef ACTION_H +#define ACTION_H + +#include <stdint.h> + +typedef enum { + ACTION_NONE, + ACTION_QUIT, + ACTION_MOVE, + ACTION_WARP, + ACTION_UNDO, + ACTION_NEXT, + ACTION_SOLVE, + ACTION_LAST, +} action_type_t; + +typedef struct { + action_type_t type; + uint64_t data; +} action_t; + +action_t get_action(void); + +#endif /* ACTION_H */ |