Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] is there some reason why is this async https://github.com/azerothcore/azerothcore-wotlk/blob/master/

[DiscordArchive] is there some reason why is this async https://github.com/azerothcore/azerothcore-wotlk/blob/master/

[DiscordArchive] is there some reason why is this async https://github.com/azerothcore/azerothcore-wotlk/blob/master/

rektbyfaith
Administrator
0
01-29-2024, 12:43 PM
#1
Archived author: Rymercyble • Posted: 2024-01-29T12:43:40.052000+00:00
Original source

is there some reason why is this async https://github.com/azerothcore/azerothco...cpp#L15139 ?
rektbyfaith
01-29-2024, 12:43 PM #1

Archived author: Rymercyble • Posted: 2024-01-29T12:43:40.052000+00:00
Original source

is there some reason why is this async https://github.com/azerothcore/azerothco...cpp#L15139 ?

rektbyfaith
Administrator
0
01-29-2024, 01:16 PM
#2
Archived author: bandysc • Posted: 2024-01-29T13:16:22.491000+00:00
Original source

database operations should be async so that they don't block the thread, i.e. don't block processing of other things on the map
rektbyfaith
01-29-2024, 01:16 PM #2

Archived author: bandysc • Posted: 2024-01-29T13:16:22.491000+00:00
Original source

database operations should be async so that they don't block the thread, i.e. don't block processing of other things on the map

rektbyfaith
Administrator
0
01-29-2024, 01:29 PM
#3
Archived author: Rymercyble • Posted: 2024-01-29T13:29:18.666000+00:00
Original source

i can see that in many cases but this is not case that would be critical or common enough to matter
rektbyfaith
01-29-2024, 01:29 PM #3

Archived author: Rymercyble • Posted: 2024-01-29T13:29:18.666000+00:00
Original source

i can see that in many cases but this is not case that would be critical or common enough to matter

rektbyfaith
Administrator
0
01-29-2024, 01:31 PM
#4
Archived author: Rymercyble • Posted: 2024-01-29T13:31:20.533000+00:00
Original source

but i can understand that it was maybe done just bcs its optimal
rektbyfaith
01-29-2024, 01:31 PM #4

Archived author: Rymercyble • Posted: 2024-01-29T13:31:20.533000+00:00
Original source

but i can understand that it was maybe done just bcs its optimal

rektbyfaith
Administrator
0
01-29-2024, 11:52 PM
#5
Archived author: Revision • Posted: 2024-01-29T23:52:55.672000+00:00
Original source

Use `CreatureScript`, not `CreatureAI` - or place `CreatureAI` (or `ScriptAI`) as a struct inside a `CreatureScript` and place `OnQuestAccept` outside of the `CreatureAI` struct but inside the `CreatureScript` one. Best to look at scripts inside the core to see examples of what I mean.
rektbyfaith
01-29-2024, 11:52 PM #5

Archived author: Revision • Posted: 2024-01-29T23:52:55.672000+00:00
Original source

Use `CreatureScript`, not `CreatureAI` - or place `CreatureAI` (or `ScriptAI`) as a struct inside a `CreatureScript` and place `OnQuestAccept` outside of the `CreatureAI` struct but inside the `CreatureScript` one. Best to look at scripts inside the core to see examples of what I mean.

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