[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/
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 ?
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
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
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
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.