Events
Events, so that arch notifies you of everything that happens.
With events, you get to know about all important entity actions and can react accordingly! This is exactly what the EVENTS
flag is for, which you can set in Arch to enable all hooks. However, you have to modify the source code for this, it's best to take a look at the chapter on PURE_ECS
!
Example
There is not much to say. As soon as the EVENTS
flag has been set, we can get started straight away and hook into all the important methods.
These methods are called directly after the respective operation, so there is no delay. They are almost direct method calls, i.e. very fast and efficient.
And now we know what's happening, we're finally complete control freaks!
Last updated
Was this helpful?