1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 23:27:45 +00:00

add isActingAsGm in Player

This commit is contained in:
Biscuit Boy 2018-07-01 21:31:49 +10:00
parent 1172861d4d
commit 54be80a26b
2 changed files with 7 additions and 0 deletions

View file

@ -142,6 +142,11 @@ void Core::Entity::Player::setGmInvis( bool invis )
m_gmInvis = invis;
}
const bool Core::Entity::Player::isActingAsGm()
{
return getOnlineStatus() == OnlineStatus::GameMaster || getOnlineStatus() == OnlineStatus::GameMaster1 || getOnlineStatus() == OnlineStatus::GameMaster2;
}
uint8_t Core::Entity::Player::getMode() const
{
return m_mode;

View file

@ -551,6 +551,8 @@ public:
bool getGmInvis() const;
void setGmInvis( bool invis );
const bool isActingAsGm();
uint8_t getMode() const;
void setMode( uint8_t mode );