© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
V. G. BruscaIntroduction to Video Game Engine Developmenthttps://doi.org/10.1007/978-1-4842-7039-4_12

12. Event Handlers

Victor G Brusca1  
(1)
Edison, NJ, USA
 
In this chapter, we’re going to review all of the event handlers that are defined in the MmgCore API. The new event handlers we’ll cover are for generic, resource loading, and main menu events. We’ll also look at event handlers implemented as an interface and as a class. The classes we’ll review in this chapter are listed in the following:
  • GenericEventMessage

  • GenericEventHandler

  • LoadResourceUpdateMessage

  • LoadResourceUpdateHandler

  • HandleMainMenuEvent

Event Handlers: GenericEventMessage

The GenericEventMessage ...

Get Introduction to Video Game Engine Development: Learn to Design, Implement, and Use a Cross-Platform 2D Game Engine now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.