From 72863ffa31e27f4c6be862d80472cfb897fccaea Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 19 Nov 2024 15:24:50 +0100 Subject: next commit --- Stages/Stage.gd | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Stages/Stage.gd') diff --git a/Stages/Stage.gd b/Stages/Stage.gd index 9484305..4277bd1 100644 --- a/Stages/Stage.gd +++ b/Stages/Stage.gd @@ -9,12 +9,20 @@ static var map: TileMapLayer static var path_grid: AStarGrid2D static var last_solid_set_points: Array[Vector2] +class Settings extends Resource: + pass +var settings: Resource + func _init() -> void: Client.initialize_stage(self) func _ready() -> void: + Client.ready_stage(self) + + multiplayer.peer_disconnected.connect(_on_peer_disconnected) + maps = find_children("*", "TileMapLayer") map = maps[0] @@ -121,3 +129,7 @@ func get_spawn(): ## get target after spawn to overwrite default spawn target func get_overwrite_target(): pass + + +func _on_peer_disconnected(id): + Network._on_peer_disconnected(id) -- cgit v1.2.3