# Call this from your game logic when the boss actually dies.
DefeatBoss(Winner : agent) : void =
Print("The boss is down!")
# Shout it. Everyone listening for BossDefeatedEvent reacts,
# and they each receive Winner as the payload.
BossDefeatedEvent.Signal(Winner)
Verse Library
verse
02 Fragment
Signals a custom event to broadcast boss defeat and pass the winner agent to listeners.
verse-library/verse-events-custom/02-fragment.verse