20 lines
434 B
GDScript3
20 lines
434 B
GDScript3
|
|
class_name Lobbyserver extends ServerNetworking
|
||
|
|
|
||
|
|
|
||
|
|
func _ready() -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func _process(_delta: float) -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
|
||
|
|
func server_client_connected(id: int) -> void:
|
||
|
|
Globals.lobby_data.server_client_connected(id)
|
||
|
|
|
||
|
|
func server_client_disconnected(id: int) -> void:
|
||
|
|
# NOTE: Wait for clients to fully disconnect...
|
||
|
|
var timer = get_tree().create_timer(1)
|
||
|
|
await timer.timeout
|
||
|
|
|
||
|
|
Globals.lobby_data.server_client_disconnected(id)
|