feat: implement sessions, lobby, roles, and rematch lifecycle
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "command_queue.h"
|
||||
#include "game_lifecycle.h"
|
||||
|
||||
/* The application task is the sole owner of game_state_t mutations. */
|
||||
typedef struct { command_queue_t command_queue; game_state_t state; } application_t;
|
||||
/* The application task is the sole owner of lifecycle and game mutations. */
|
||||
typedef struct { command_queue_t command_queue; game_lifecycle_t lifecycle; } application_t;
|
||||
|
||||
bool application_enqueue(application_t *application, const app_command_t *command);
|
||||
bool application_take_next_command(application_t *application, app_command_t *command);
|
||||
|
||||
Reference in New Issue
Block a user