semi-idle-arpg/scripts/SignalBus.gd

27 lines
656 B
GDScript

# signal bus to relay signals
extends Node
signal enemy_died(
npcDifficulty: NPC.NPCDifficulty,
npcTier: Globals.World.Tier,
faction: Globals.World.Faction,
)
signal enemy_damaged_player(damage: int)
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:
# to get rid of the unused signal warnings
enemy_died.emit()
enemy_damaged_player.emit()
player_leveled_up.emit()
player_used_ability.emit()
quest_generated.emit()
quest_completed.emit()
area_continue_pressed.emit()