Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] <@200677690838220800> would it be an overkill to create a struct called PrioritizedTarget which cont

[DiscordArchive] <@200677690838220800> would it be an overkill to create a struct called PrioritizedTarget which cont

[DiscordArchive] <@200677690838220800> would it be an overkill to create a struct called PrioritizedTarget which cont

rektbyfaith
Administrator
0
07-10-2025, 05:28 PM
#1
Archived author: Telegrill • Posted: 2025-07-10T17:28:09.783000+00:00
Original source

<@200677690838220800> would it be an overkill to create a struct called PrioritizedTarget which contains a pointer to each unit and their score, plus a bool operator<(const PrioritizedTarget& other) rather than using a plain std::vector<std::pair<WorldObject*, int32>, and then an outside function for ShuffleTieRange all within a given namespace called PriorityHelpers?
rektbyfaith
07-10-2025, 05:28 PM #1

Archived author: Telegrill • Posted: 2025-07-10T17:28:09.783000+00:00
Original source

<@200677690838220800> would it be an overkill to create a struct called PrioritizedTarget which contains a pointer to each unit and their score, plus a bool operator<(const PrioritizedTarget& other) rather than using a plain std::vector<std::pair<WorldObject*, int32>, and then an outside function for ShuffleTieRange all within a given namespace called PriorityHelpers?

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