OnBegin<override>()<suspends> : void =
# Listen to our OWN event, just like a device's.
BossDefeatedEvent.Subscribe(OnBossDefeated)
# The payload (the winner) arrives just like a device hands you an agent.
OnBossDefeated(Winner : agent) : void =
Print("Victory! Rewarding the winner.")
Verse Library
verse
03 Fragment
Sets up a handler subscription to react and execute logic when the boss event fires.
verse-library/verse-events-custom/03-fragment.verse