View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 12-02-2016 , 12:32   Re: Right way of gameevents
Reply With Quote #2

The simplest and most common method is to just make your plugin class, the ZombiePlague instance in this case, a listener. In the callback, check the event name and then do or call your logic for each that you want to handle.

Like this, https://github.com/psychonic/d2fixup...ixups.cpp#L290

Last edited by psychonic; 12-02-2016 at 12:32.
psychonic is offline