What I think you're saying is there will be a way when we register the event to provide a set of filters or possibly a filtering function that would be checked prior to the event callback being invoked?
|
Here is an example:
Lua Code:
control:AddFilterForEvent(EVENT_POWER_UPDATE, REGISTER_FILTER_UNIT_TAG_PREFIX, "boss")
The advantage is that we can filter very cheaply in C++ and we don't have to pay the price of going into the VM only for it to early out.
On a separate, but related note, has there been any ongoing work to evaluate what is causing certain events to be a bit....spammy?
|
We can look into it. Are there any other examples you have?