mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-30 16:17:46 +00:00
change isActingAsGm const location and add const to getOnlineStatus
This commit is contained in:
parent
667ab110b9
commit
062566f848
2 changed files with 4 additions and 4 deletions
|
@ -142,7 +142,7 @@ void Core::Entity::Player::setGmInvis( bool invis )
|
|||
m_gmInvis = invis;
|
||||
}
|
||||
|
||||
const bool Core::Entity::Player::isActingAsGm()
|
||||
bool Core::Entity::Player::isActingAsGm() const
|
||||
{
|
||||
auto status = getOnlineStatus();
|
||||
return status == OnlineStatus::GameMaster || status == OnlineStatus::GameMaster1 || status == OnlineStatus::GameMaster2;
|
||||
|
@ -173,7 +173,7 @@ bool Core::Entity::Player::isMarkedForRemoval() const
|
|||
return m_markedForRemoval;
|
||||
}
|
||||
|
||||
Core::Common::OnlineStatus Core::Entity::Player::getOnlineStatus()
|
||||
Core::Common::OnlineStatus Core::Entity::Player::getOnlineStatus() const
|
||||
{
|
||||
auto pExdData = g_fw.get< Data::ExdDataGenerated >();
|
||||
if( !pExdData )
|
||||
|
|
|
@ -325,7 +325,7 @@ public:
|
|||
/*! sets players combat state */
|
||||
void setInCombat( bool mode );
|
||||
/*! return current online status depending on current state / activity */
|
||||
Common::OnlineStatus getOnlineStatus();
|
||||
Common::OnlineStatus getOnlineStatus() const;
|
||||
/*! sets the players zone, initiating a zoning process */
|
||||
void setZone( uint32_t zoneId );
|
||||
/*! sets the players instance & initiates zoning process */
|
||||
|
@ -551,7 +551,7 @@ public:
|
|||
bool getGmInvis() const;
|
||||
void setGmInvis( bool invis );
|
||||
|
||||
const bool isActingAsGm();
|
||||
bool isActingAsGm() const;
|
||||
|
||||
uint8_t getMode() const;
|
||||
void setMode( uint8_t mode );
|
||||
|
|
Loading…
Add table
Reference in a new issue