WIP: Add a dedicated server option

This commit is contained in:
2025-01-29 23:53:15 +01:00
parent 67e81abad9
commit c62b2d7a09
35 changed files with 651 additions and 86 deletions

View File

@ -29,3 +29,9 @@ func spawn_players(spawn_location: SpawnController, id: int) -> Error:
_get_root().add_child(char)
return OK
return ERR_UNAUTHORIZED
func remove_player(id: int) -> Error:
if multiplayer.is_server():
_get_root().find_child("PlayerPlaceholder_" + str(id)).queue_free()
return OK
return ERR_UNAUTHORIZED