aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Gone2Daly <71726742+Gone2Daly@users.noreply.github.com>2023-04-07 18:13:25 +0200
committer Gone2Daly <71726742+Gone2Daly@users.noreply.github.com>2023-04-07 18:13:25 +0200
commit3f7193de14d91f25db5cf571fcef05caaba6237f (patch)
treef34dca30c4c27e54c05f957169ab49dafec14927
parent4617947cc0a1b769beacb750b4ec47667655dc8f (diff)
forgot to add emit
-rw-r--r--game/src/GameSession/MapView.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/game/src/GameSession/MapView.gd b/game/src/GameSession/MapView.gd
index faf90e8..8540536 100644
--- a/game/src/GameSession/MapView.gd
+++ b/game/src/GameSession/MapView.gd
@@ -1,6 +1,8 @@
extends Node3D
signal province_selected(identifier : String)
+signal map_view_camera_change(camera_position : Vector3)
+
const _action_north : StringName = &"map_north"
const _action_east : StringName = &"map_east"
@@ -123,6 +125,7 @@ func _physics_process(delta : float):
# Process zooming
_zoom_process(delta)
# Orient based on height
+ map_view_camera_change.emit(_camera.position)
_update_orientation()
# Calculate where the mouse lies on the map
_update_mouse_map_position()