feat: implement sessions, lobby, roles, and rematch lifecycle

This commit is contained in:
2026-08-28 22:57:17 +03:00
parent ec1ff20ddd
commit a691783f58
10 changed files with 488 additions and 9 deletions
+3 -2
View File
@@ -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);