Add battle_started signal

This commit is contained in:
TheThomaas 2026-10-12 19:48:59 +02:00
parent 42ec6fb114
commit 97380291eb
2 changed files with 2 additions and 0 deletions

View file

@ -65,6 +65,7 @@ func start_encounter(encounter : BattleEncounter, enemy_pos : Vector3, sent : Se
_running = true
GameData.in_battle = true
GameData.battle_started.emit() #les elements d'interface (TeamHUD...) se cachent ici, avant la pause du monde
get_tree().paused = true
battle_started.emit()

View file

@ -3,6 +3,7 @@ extends Node
signal selected_pokemon_changed
signal battle_requested(sent : SentPokemon, target : Node) #emis par ThrowState : BattleLauncher s'y branche
signal battle_started #emis par BattleLauncher au debut d'un combat (avant la pause du monde)
signal battle_finished(outcome : int, target : Node) #emis par BattleLauncher (outcome = valeur de Battle.Outcome)
signal save_started