I want to have different behaviuor depending on type of eliminated guards.
For example, I have Shadow Guard, Ghost Guard and Grotto Guard. I have a function like: OnGuardCompletedPath(Agent:agent):void. I want to make switch condition based on the exact type of a guard, something like:
OnGuardCompletedPath(Agent:agent):void =
match Agent.Type
ShadowGuard => Print(“Shadow Guard”)
GhostGuard => Print(“Shadow Guard”)
GrottoGuard => Print(“Shadow Guard”)
How to do it in Verse?