refactor: remove deprecated sequencing calls
This commit is contained in:
parent
a0272ec3f2
commit
dbfe0cfdd0
|
|
@ -99,4 +99,3 @@ func unload():
|
|||
func play_chest_animation(_id):
|
||||
$AnimationPlayer.play("intro")
|
||||
await $AnimationPlayer.animation_finished
|
||||
Scenes.continue_sequence(self)
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@ func burn_cards(_id: int, _repeat: bool = false) -> void:
|
|||
$AnimationPlayer.play("vanish")
|
||||
await $AnimationPlayer.animation_finished
|
||||
|
||||
Scenes.finish_sequence(self)
|
||||
|
||||
signal card_burned
|
||||
|
||||
func handle_hover(to_handle: Area2D):
|
||||
|
|
|
|||
|
|
@ -220,7 +220,6 @@ func transition():
|
|||
|
||||
cards_picked.emit(out_str)
|
||||
selection_state = DONE
|
||||
Scenes.finish_sequence(self)
|
||||
|
||||
func show_posts():
|
||||
for player:AnimationPlayer in anim_players:
|
||||
|
|
|
|||
|
|
@ -65,22 +65,6 @@ func end_sequence(scene_id: id) -> void:
|
|||
# Re-enable player movement after cutscene
|
||||
player_enable.emit(true)
|
||||
|
||||
# Legacy support - redirects to begin_sequence
|
||||
func start_sequence(scene_id: id) -> void:
|
||||
push_warning("start_sequence is deprecated. CollectableUi should call begin_sequence directly.")
|
||||
begin_sequence(scene_id)
|
||||
|
||||
# Legacy support - redirects to end_sequence
|
||||
func finish_sequence(_actor: Object) -> void:
|
||||
push_warning("finish_sequence is deprecated. CollectableUi should call end_sequence directly.")
|
||||
if current_sequence != -1 and current_sequence < id.size():
|
||||
end_sequence(id.values()[current_sequence])
|
||||
|
||||
# Legacy alias
|
||||
func end_current_sequence() -> void:
|
||||
if current_sequence != -1 and current_sequence < id.size():
|
||||
end_sequence(id.values()[current_sequence])
|
||||
|
||||
# Legacy support - no longer needed
|
||||
func continue_sequence(_former_actor: Object) -> void:
|
||||
push_warning("continue_sequence is deprecated and does nothing.")
|
||||
|
|
@ -89,9 +73,6 @@ func continue_sequence(_former_actor: Object) -> void:
|
|||
func sign_up_for_sequence(_callable: Callable, _sequence_id: id, _index: int = 0) -> void:
|
||||
push_warning("sign_up_for_sequence is deprecated. CollectableUi now manages playback directly.")
|
||||
|
||||
# Legacy support - no longer needed
|
||||
func register_scene_actor(_scene_id: id, _callable: Callable) -> void:
|
||||
push_warning("register_scene_actor is deprecated. CollectableUi now manages playback directly.")
|
||||
|
||||
func is_sequence_repeating(index: int) -> bool:
|
||||
return completed_sequences & (1 << index) > 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue