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:
parent
1172861d4d
commit
54be80a26b
2 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -551,6 +551,8 @@ public:
|
|||
bool getGmInvis() const;
|
||||
void setGmInvis( bool invis );
|
||||
|
||||
const bool isActingAsGm();
|
||||
|
||||
uint8_t getMode() const;
|
||||
void setMode( uint8_t mode );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue