mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-05 18:24:12 +00:00
Implement flying command (#713)
* Implement flying command * Add documentation.
This commit is contained in:
@@ -425,6 +425,18 @@ public:
|
||||
*/
|
||||
const std::vector<LOT>& GetEquippedItems() const { return m_EquippedItems; }
|
||||
|
||||
/**
|
||||
* @brief Get the flying state
|
||||
* @return value of the flying state
|
||||
*/
|
||||
bool GetIsFlying() { return m_IsFlying; }
|
||||
|
||||
/**
|
||||
* @brief Set the value of the flying state
|
||||
* @param isFlying the flying state
|
||||
*/
|
||||
void SetIsFlying(bool isFlying) { m_IsFlying = isFlying; }
|
||||
|
||||
private:
|
||||
/**
|
||||
* The ID of this character. First 32 bits of the ObjectID.
|
||||
@@ -621,6 +633,11 @@ private:
|
||||
*/
|
||||
std::string m_TargetScene;
|
||||
|
||||
/**
|
||||
* Bool that tracks the flying state of the user.
|
||||
*/
|
||||
bool m_IsFlying = false;
|
||||
|
||||
/**
|
||||
* Queries the character XML and updates all the fields of this object
|
||||
* NOTE: quick as there's no DB lookups
|
||||
|
Reference in New Issue
Block a user