[DiscordArchive] What is the difference between EventProcessor and TaskScheduler in the code?
[DiscordArchive] What is the difference between EventProcessor and TaskScheduler in the code?
Archived author: Pandaros • Posted: 2023-02-07T15:30:47.544000+00:00
Original source
What is the difference between EventProcessor and TaskScheduler in the code?
Archived author: ModoX • Posted: 2023-02-07T15:46:45.594000+00:00
Original source
TaskScheduler is a modern C++11 approach using lambda expressions. Alternative to it would be EventMap, you have to update both in some update method, e.g. UpdateAI() of ScriptedAI. EventProcessor are using "BasicEvents" and is a more generic way which is a timer being triggered on the unit itself which also allows us to use it in player spells