diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-11-04 12:54:13 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-11-04 12:54:13 -0300 |
| commit | 63e4f75e9292e1276cc0b5d11ebad010f147aa68 (patch) | |
| tree | 4b6c9a1c39b7e2fedb0ba27a8df47631bb2abea9 /scripts/Map/Map.cs | |
| parent | 5d2f66f1e7f8a9f35456e0f6acc478d1b2ecb294 (diff) | |
Display de andar
Diffstat (limited to 'scripts/Map/Map.cs')
| -rw-r--r-- | scripts/Map/Map.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/Map/Map.cs b/scripts/Map/Map.cs index 2913c1f..104d658 100644 --- a/scripts/Map/Map.cs +++ b/scripts/Map/Map.cs @@ -32,9 +32,6 @@ public partial class Map : Node2D /// </summary> public MapData MapData { get; private set; } - [Signal] - public delegate void DungeonFloorChangedEventHandler(int floor); - private SignalBus.PlayerDescentEventHandler joinSignal; public override void _Ready() { @@ -83,7 +80,7 @@ public partial class Map : Node2D PlaceTiles(); PlaceEntities(); - EmitSignal(SignalName.DungeonFloorChanged, currentFloor); + SignalBus.Instance.EmitSignal(SignalBus.SignalName.DungeonFloorChanged, currentFloor); } /// <summary> @@ -142,7 +139,7 @@ public partial class Map : Node2D PlaceEntities(); MapData.EntityPlaced += OnEntityPlaced; - EmitSignal(SignalName.DungeonFloorChanged, MapData.CurrentFloor); + SignalBus.Instance.EmitSignal(SignalBus.SignalName.DungeonFloorChanged, MapData.CurrentFloor); return true; } |
