feat(multiplayer): notify clients before server shutdown

This commit is contained in:
Josh Creek
2026-09-01 16:42:15 +01:00
parent 8c2dc66c7c
commit b24f9fc448
5 changed files with 43 additions and 0 deletions
+1
View File
@@ -186,6 +186,7 @@ func _on_player_left(peer_id: int) -> void:
func _on_drain_requested() -> void:
_drain_requested = true
MatchNet.admissions_open = false
MatchNet.broadcast_server_shutdown("server_draining")
ServerLog.info("server_draining", {"reason": "control_request"})