fungus

Open full view…

How to add a new fungus event handler?

doctorreal
Fri, 20 Jul 2018 20:44:42 GMT

How to add a new fungus event handler? I read the documentation but I can't find a solution to the question. I want to add a new event handler from my code to the Fungus.EventHandler, but I can't find a solution.

Steve Halliwell
Sat, 21 Jul 2018 06:43:22 GMT

GameStarted.cs is probably the simplest to look at. Basically, you need to inherit from Fungus.EventHandler, your class needs to call ExecuteBlock at whatever you determine is the appropriate time for your event to trigger, and you need to put a Fungus.EventHandlerInfo attribute on your class declaration so that it can show up in the event drop down