LiteLDev/LiteLoader.NET

Events: handling base event classes

S3v3Nice opened this issue · 0 comments

I think there should be an option to listen to the events by their base class.
Suppose there are FormResponseEvent and FormCloseEvent, which inherit FormEvent class. And it would be nice to listen to both FormResponseEvent and FormCloseEvent by writing like this:

[EventHandler]
public void OnFormEvent(FormEvent e) 
{
    ...
}