Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] What is the difference between EventProcessor and TaskScheduler in the code?

[DiscordArchive] What is the difference between EventProcessor and TaskScheduler in the code?

[DiscordArchive] What is the difference between EventProcessor and TaskScheduler in the code?

rektbyfaith
Administrator
0
02-07-2023, 03:30 PM
#1
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?
rektbyfaith
02-07-2023, 03:30 PM #1

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?

rektbyfaith
Administrator
0
02-07-2023, 03:46 PM
#2
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
rektbyfaith
02-07-2023, 03:46 PM #2

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

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)