cleanup enums to make them more consistent

This commit is contained in:
Aaron Kimbre
2023-01-22 17:38:47 -06:00
parent cff94b6c22
commit faf42d2f8c
133 changed files with 898 additions and 808 deletions

View File

@@ -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