• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Event hits

wang

Well-known member
#1
What is the benefit on using them? It saves me time if I do not use them, because I can add all classes in a function and then define that function to Code Event Listeners in my admin panel. But if I use Event Hints, like i have noticed in some add ons, such as Resource Manager, then I have to define each function one by one to Code Event Listeners. Can someone explain to me the benefits of adding event hints in add ons vs not using them?
 

NixFifty

Well-known member
#2
They're used to only call your event listeners on classes where they're actually required thus providing a performance boost, especially in the case of larger and busier forums.