2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bitmap of permissions and restrictions for characters.
|
|
|
|
*/
|
|
|
|
enum class PermissionMap : uint64_t
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Reserved for future use, bit 0-3.
|
|
|
|
*/
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
/**
|
|
|
|
* The character has restricted trade acccess, bit 4.
|
|
|
|
*/
|
|
|
|
RestrictedTradeAccess = 0x1 << 4,
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
/**
|
|
|
|
* The character has restricted mail access, bit 5.
|
|
|
|
*/
|
|
|
|
RestrictedMailAccess = 0x1 << 5,
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
/**
|
|
|
|
* The character has restricted chat access, bit 6.
|
|
|
|
*/
|
|
|
|
RestrictedChatAccess = 0x1 << 6,
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
//
|
|
|
|
// Combined permissions
|
|
|
|
//
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
/**
|
|
|
|
* The character is marked as 'old', restricted from trade and mail.
|
|
|
|
*/
|
|
|
|
Old = RestrictedTradeAccess | RestrictedMailAccess,
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
/**
|
|
|
|
* The character is soft banned, restricted from trade, mail, and chat.
|
|
|
|
*/
|
|
|
|
SoftBanned = RestrictedTradeAccess | RestrictedMailAccess | RestrictedChatAccess,
|
|
|
|
};
|