start refactor context states with kubo_state_wall_select
This commit is contained in:
parent
c2c99e73d2
commit
7e065745d2
13 changed files with 349 additions and 103 deletions
|
|
@ -27,17 +27,12 @@
|
|||
#include "kubo_dynarray.h"
|
||||
#include "kubo_wall.h"
|
||||
|
||||
#include "states/kubo_states.h"
|
||||
|
||||
#define KUBO_CONTEXT_OFFSET_JMP 100
|
||||
|
||||
KUBO_DYNARRAY_REGISTER(kubo_wall_arr, struct kubo_wall *)
|
||||
|
||||
enum kubo_context_state {
|
||||
KUBO_CONTEXT_NORMAL,
|
||||
KUBO_CONTEXT_COMMAND,
|
||||
KUBO_CONTEXT_WALL_NEW,
|
||||
KUBO_CONTEXT_WALL_SELECT,
|
||||
};
|
||||
|
||||
struct kubo_context_state_data {
|
||||
enum kubo_context_state id;
|
||||
char *label;
|
||||
|
|
@ -71,4 +66,6 @@ void kubo_context_input_down(struct kubo_context *context);
|
|||
void kubo_context_input_left(struct kubo_context *context);
|
||||
void kubo_context_input_right(struct kubo_context *context);
|
||||
|
||||
void kubo_context_key(struct kubo_context *context, int key_code);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue