9 lines
297 B
C++
9 lines
297 B
C++
#pragma once
|
|
#include <cstdint>
|
|
namespace gateway {
|
|
// Trinity assigns this realm/character ID when loading a player, including guildless characters.
|
|
constexpr uint64_t guild_club_member_id(uint64_t character,uint16_t realm) noexcept {
|
|
return character | (uint64_t(realm & 0x0fff) << 48);
|
|
}
|
|
}
|