semi-idle-arpg/scripts/SignalBus.gd

27 lines
656 B
GDScript3
Raw Normal View History

# signal bus to relay signals
extends Node
2024-10-20 16:44:08 -06:00
signal enemy_died(
npcDifficulty: NPC.NPCDifficulty,
npcTier: Globals.World.Tier,
2024-10-20 16:44:08 -06:00
faction: Globals.World.Faction,
)
signal enemy_damaged_player(damage: int)
2024-10-27 17:20:33 -06:00
signal player_leveled_up()
signal player_used_ability(ability_cost: int)
signal quest_generated(quest: Quest)
signal quest_completed
signal area_continue_pressed()
func _dummy_func() -> void:
2024-10-25 22:22:13 -06:00
# to get rid of the unused signal warnings
enemy_died.emit()
enemy_damaged_player.emit()
2024-10-27 17:20:33 -06:00
player_leveled_up.emit()
player_used_ability.emit()
quest_generated.emit()
quest_completed.emit()
area_continue_pressed.emit()