breakout gmlevel into a scoped enum (#996)

* breakout gmlevel enum and make it a class
tested that things still work
slash command,
chat restrictions,
packets and serializations

* fix GM level for some slash commands

* fix new use of this enum
This commit is contained in:
Aaron Kimbrell
2023-03-24 18:16:45 -05:00
committed by GitHub
parent b967cc57d1
commit 72ca0f13ff
24 changed files with 184 additions and 159 deletions

View File

@@ -178,7 +178,7 @@ public:
* Sets the GM level of the character, should be called in the entity. Here it's set for serialization
* @param gmlevel the gm level to set
*/
void SetGMLevel(int gmlevel);
void SetGMLevel(eGameMasterLevel gmlevel);
/**
* Initializes the player statistics from the string stored in the XML
@@ -333,7 +333,7 @@ private:
/**
* The current GM level of this character (anything > 0 counts as a GM)
*/
unsigned char m_GMLevel;
eGameMasterLevel m_GMLevel;
/**
* Whether the character has HF enabled
@@ -343,7 +343,7 @@ private:
/**
* The level of the character in HF
*/
unsigned char m_EditorLevel;
eGameMasterLevel m_EditorLevel;
/**
* Whether the currently active activity has been changed