GFEvent
that represent the different events that GameFlow is able to manage. These classes are the following:IEventListener
interface can be added to the list of subscribers that will receive a notification when an event of a certain type is triggered. This allows your own scripts to react to events triggered by GameFlow programs.IsListening()
and EventReceived()
methods of the IEventListener
interface to filter and respond to events.AddListener()
static method of the type of event to which we want an instance of our script to subscribe.MyEventHook
script is subscribed to receive notifications of events of type GameStart
. Each time one of these events is received, we will post a message on the console as an answer: