refactor: pass match data to game server launcher

* Pass full match data to InstanceLauncher instead of only match type
* Track server threads by match ID rather than thread instance ID
* Update child completion handling to use match ID
This commit is contained in:
2026-08-11 23:40:09 -05:00
parent 4dd0af2916
commit 2ac444162f
2 changed files with 9 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ func _launch_game_server(
client1: Dictionary,
client2: Dictionary
) -> void:
var port: String = InstanceLauncher.launch_game_server(match_entry.data.type)
var port: String = InstanceLauncher.launch_game_server(match_entry.data)
if port == "-1":
# TODO: Alert clients that the game wont be created due to
# server reaching number of allowed instances.