Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] When applying a bitmask in the database, should we simply just add them together to include several

[DiscordArchive] When applying a bitmask in the database, should we simply just add them together to include several

[DiscordArchive] When applying a bitmask in the database, should we simply just add them together to include several

rektbyfaith
Administrator
0
07-26-2024, 05:11 AM
#1
Archived author: zeeb • Posted: 2024-07-26T05:11:36.333000+00:00
Original source

When applying a bitmask in the database, should we simply just add them together to include several races/classes? Such as if we want Warrior and Paladin (Warrior = 1, Paladin = 2) we should then set it as 3?
rektbyfaith
07-26-2024, 05:11 AM #1

Archived author: zeeb • Posted: 2024-07-26T05:11:36.333000+00:00
Original source

When applying a bitmask in the database, should we simply just add them together to include several races/classes? Such as if we want Warrior and Paladin (Warrior = 1, Paladin = 2) we should then set it as 3?

rektbyfaith
Administrator
0
07-26-2024, 06:20 AM
#2
Archived author: Anchy • Posted: 2024-07-26T06:20:12.238000+00:00
Original source

yes
rektbyfaith
07-26-2024, 06:20 AM #2

Archived author: Anchy • Posted: 2024-07-26T06:20:12.238000+00:00
Original source

yes

rektbyfaith
Administrator
0
07-26-2024, 06:20 AM
#3
Archived author: Anchy • Posted: 2024-07-26T06:20:43.501000+00:00
Original source

if you convert the numbers to binary you can see how bitmasks work
rektbyfaith
07-26-2024, 06:20 AM #3

Archived author: Anchy • Posted: 2024-07-26T06:20:43.501000+00:00
Original source

if you convert the numbers to binary you can see how bitmasks work

rektbyfaith
Administrator
0
07-26-2024, 06:20 AM
#4
Archived author: Anchy • Posted: 2024-07-26T06:20:51.652000+00:00
Original source

they are just boolean flags
rektbyfaith
07-26-2024, 06:20 AM #4

Archived author: Anchy • Posted: 2024-07-26T06:20:51.652000+00:00
Original source

they are just boolean flags

rektbyfaith
Administrator
0
07-26-2024, 07:19 AM
#5
Archived author: zeeb • Posted: 2024-07-26T07:19:49.462000+00:00
Original source

Appreciate it
rektbyfaith
07-26-2024, 07:19 AM #5

Archived author: zeeb • Posted: 2024-07-26T07:19:49.462000+00:00
Original source

Appreciate it

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