Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Random question for anyone that might know,

[DiscordArchive] Random question for anyone that might know,

[DiscordArchive] Random question for anyone that might know,

rektbyfaith
Administrator
0
01-01-2025, 05:31 PM
#1
Archived author: Peacy • Posted: 2025-01-01T17:31:24.559000+00:00
Original source

Random question for anyone that might know,

On master why do spell charges get saved in a table like this:

```
typedef std::unordered_map<uint32 /*categoryId*/, std::deque<ChargeEntry>> ChargeStorageType;
```
what is the need of the deque, all spells in a category share the same cd right?
rektbyfaith
01-01-2025, 05:31 PM #1

Archived author: Peacy • Posted: 2025-01-01T17:31:24.559000+00:00
Original source

Random question for anyone that might know,

On master why do spell charges get saved in a table like this:

```
typedef std::unordered_map<uint32 /*categoryId*/, std::deque<ChargeEntry>> ChargeStorageType;
```
what is the need of the deque, all spells in a category share the same cd right?

rektbyfaith
Administrator
0
01-01-2025, 05:40 PM
#2
Archived author: Peacy • Posted: 2025-01-01T17:40:52.377000+00:00
Original source

in master looks like:

```c++
Milliseconds cooldownDuration = std::chrono::duration_cast<Milliseconds>(p.second.front().RechargeEnd - now);
```
front is just taken from the deque anyway
rektbyfaith
01-01-2025, 05:40 PM #2

Archived author: Peacy • Posted: 2025-01-01T17:40:52.377000+00:00
Original source

in master looks like:

```c++
Milliseconds cooldownDuration = std::chrono::duration_cast<Milliseconds>(p.second.front().RechargeEnd - now);
```
front is just taken from the deque anyway

rektbyfaith
Administrator
0
01-01-2025, 05:42 PM
#3
Archived author: Peacy • Posted: 2025-01-01T17:42:53.438000+00:00
Original source

oh...I'm an ape, it holds the cd of each charge
rektbyfaith
01-01-2025, 05:42 PM #3

Archived author: Peacy • Posted: 2025-01-01T17:42:53.438000+00:00
Original source

oh...I'm an ape, it holds the cd of each charge

rektbyfaith
Administrator
0
01-01-2025, 05:42 PM
#4
Archived author: Peacy • Posted: 2025-01-01T17:42:57.151000+00:00
Original source

disregard
rektbyfaith
01-01-2025, 05:42 PM #4

Archived author: Peacy • Posted: 2025-01-01T17:42:57.151000+00:00
Original source

disregard

rektbyfaith
Administrator
0
01-01-2025, 05:43 PM
#5
Archived author: Peacy • Posted: 2025-01-01T17:43:03.899000+00:00
Original source

https://tenor.com/view/logical-flawlessl...f-23575428
rektbyfaith
01-01-2025, 05:43 PM #5

Archived author: Peacy • Posted: 2025-01-01T17:43:03.899000+00:00
Original source

https://tenor.com/view/logical-flawlessl...f-23575428

rektbyfaith
Administrator
0
01-01-2025, 05:43 PM
#6
Archived author: Tea • Posted: 2025-01-01T17:43:10.504000+00:00
Original source

yes
rektbyfaith
01-01-2025, 05:43 PM #6

Archived author: Tea • Posted: 2025-01-01T17:43:10.504000+00:00
Original source

yes

rektbyfaith
Administrator
0
01-01-2025, 05:43 PM
#7
Archived author: Tea • Posted: 2025-01-01T17:43:15.987000+00:00
Original source

(to the ape part)
rektbyfaith
01-01-2025, 05:43 PM #7

Archived author: Tea • Posted: 2025-01-01T17:43:15.987000+00:00
Original source

(to the ape part)

rektbyfaith
Administrator
0
01-01-2025, 05:43 PM
#8
Archived author: Peacy • Posted: 2025-01-01T17:43:45.201000+00:00
Original source

https://tenor.com/view/schitts-creek-dav...f-20867360
rektbyfaith
01-01-2025, 05:43 PM #8

Archived author: Peacy • Posted: 2025-01-01T17:43:45.201000+00:00
Original source

https://tenor.com/view/schitts-creek-dav...f-20867360

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