[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
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?
Archived author: Anchy • Posted: 2024-07-26T06:20:12.238000+00:00
Original source
yes
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
Archived author: Anchy • Posted: 2024-07-26T06:20:51.652000+00:00
Original source
they are just boolean flags
Archived author: zeeb • Posted: 2024-07-26T07:19:49.462000+00:00
Original source
Appreciate it