feat(runtime): add integration hardening and diagnostics
This commit is contained in:
@@ -195,6 +195,16 @@ int maze32_lobby_activate_if_due(maze32_lobby_t* lobby, uint64_t now_ms) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
void maze32_lobby_reset_match(maze32_lobby_t* lobby) {
|
||||
if (lobby == NULL) {
|
||||
return;
|
||||
}
|
||||
lobby->phase = MAZE32_LOBBY_WAITING;
|
||||
lobby->countdown_started_ms = 0U;
|
||||
lobby->activation_ms = 0U;
|
||||
lobby->revision++;
|
||||
}
|
||||
|
||||
const maze32_session_t* maze32_lobby_session_for_connection(const maze32_lobby_t* lobby,
|
||||
int connection_id) {
|
||||
if (lobby == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user