Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitaiMazliah committed Jan 11, 2024
1 parent f4f7978 commit 3e0e72e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions prefabs/turn_queue.tscn
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[gd_scene load_steps=12 format=3 uid="uid://bp22mksxi8dw0"]
[gd_scene load_steps=11 format=3 uid="uid://bp22mksxi8dw0"]

[ext_resource type="Script" path="res://scripts/turn_queue.gd" id="1_uop6f"]
[ext_resource type="Resource" uid="uid://d0e5uorq1a1rt" path="res://resources/events/victory_event_channel.tres" id="2_ya30x"]
[ext_resource type="Resource" uid="uid://ceg0y65hkm0a2" path="res://resources/events/defeat_event_channel.tres" id="3_tldaw"]
[ext_resource type="Resource" uid="uid://b8o6t2vq7t8o2" path="res://resources/events/turn_manager/turn_changed_event_channel.tres" id="4_4v01b"]
[ext_resource type="Resource" uid="uid://2nvlhruxpke6" path="res://resources/events/play_sound_event_channel.tres" id="4_vxxsm"]
[ext_resource type="Texture2D" uid="uid://i4w008b3vmdo" path="res://art/timer-icon.png" id="4_vyamo"]
[ext_resource type="Resource" uid="uid://cjfbhsoqhw48n" path="res://resources/audio/cues/countdown_audio.tres" id="5_hnwi4"]
Expand All @@ -28,7 +27,6 @@ corner_radius_bottom_left = 5
script = ExtResource("1_uop6f")
victory_event_channel = ExtResource("2_ya30x")
defeat_event_channel = ExtResource("3_tldaw")
turn_changed_event_channel = ExtResource("4_4v01b")
turn_time_in_secs = 15.0
turn_label = NodePath("CanvasLayer/CurrentTurnLabel")
turn_countdown_progress_bar = NodePath("CanvasLayer/TurnCountCount/TurnCountDownProgressBar")
Expand Down
4 changes: 2 additions & 2 deletions scripts/turn_queue.gd
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func _start_turn():
get_tree().create_timer(turn_time_in_secs - 2),
get_tree().create_timer(turn_time_in_secs - 1)
]
for t in _countdown_timers:
for t: SceneTreeTimer in _countdown_timers:
t.timeout.connect(_play_countdown_audio)

func _end_turn() -> void:
Expand All @@ -95,7 +95,7 @@ func _get_next_live_agent() -> Agent2D:

func _on_agent_moved() -> void:
timer.stop()
for t in _countdown_timers:
for t: SceneTreeTimer in _countdown_timers:
t.timeout.disconnect(_play_countdown_audio)

func _fade_label() -> void:
Expand Down

0 comments on commit 3e0e72e

Please sign in to comment.