Game Development Reference
In-Depth Information
Line 097 : Critically, the PostNotification function is called on
EventManager to invoke all the delegates (listener functions) when an event
occurs. This happens at line 097 with the statement ListenList[i](Event_
Type, Sender, Param); . This invokes the delegate just like a function, as
shown in the following screenshot:
Exploring the EventManager projects
The preceding screenshot shows the EventManager projects.
To see the EventManager delegate implementation in
action, see the events_delgateversion folder project in
code bundle of this chapter.
 
Search WWH ::




Custom Search