mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-05 18:24:12 +00:00
cleanup enums to make them more consistent
This commit is contained in:
@@ -9,11 +9,12 @@
|
||||
|
||||
#include "NiPoint3.h"
|
||||
#include "NiQuaternion.h"
|
||||
#include "PermissionMap.h"
|
||||
#include "ePermissionMap.h"
|
||||
|
||||
class User;
|
||||
struct Packet;
|
||||
class Entity;
|
||||
enum class ePermissionMap : uint64_t;
|
||||
|
||||
/**
|
||||
* Meta information about a character, like their name and style
|
||||
@@ -385,14 +386,14 @@ public:
|
||||
* Gets the permissions of the character, determining what actions a character may do
|
||||
* @return the permissions for this character
|
||||
*/
|
||||
PermissionMap GetPermissionMap() const;
|
||||
ePermissionMap GetPermissionMap() const;
|
||||
|
||||
/**
|
||||
* Check if this character has a certain permission
|
||||
* @param permission the ID of the permission to check for
|
||||
* @return whether the character has the specified permission
|
||||
*/
|
||||
bool HasPermission(PermissionMap permission) const;
|
||||
bool HasPermission(ePermissionMap permission) const;
|
||||
|
||||
/**
|
||||
* Gets all the emotes this character has unlocked so far
|
||||
@@ -481,7 +482,7 @@ private:
|
||||
/**
|
||||
* Bitmap of permission attributes this character has.
|
||||
*/
|
||||
PermissionMap m_PermissionMap;
|
||||
ePermissionMap m_PermissionMap;
|
||||
|
||||
/**
|
||||
* The default name of this character
|
||||
|
Reference in New Issue
Block a user