refactor: add player exp methods
This commit is contained in:
@@ -13,7 +13,7 @@ private:
|
|||||||
game::TeamColor m_TeamColor;
|
game::TeamColor m_TeamColor;
|
||||||
|
|
||||||
std::uint32_t m_Gold = 0;
|
std::uint32_t m_Gold = 0;
|
||||||
std::int32_t m_EXP = 0;
|
std::uint32_t m_EXP = 0;
|
||||||
std::string m_Name;
|
std::string m_Name;
|
||||||
std::uint8_t m_ID;
|
std::uint8_t m_ID;
|
||||||
|
|
||||||
@@ -33,6 +33,9 @@ public:
|
|||||||
std::uint32_t getGold() const { return m_Gold; }
|
std::uint32_t getGold() const { return m_Gold; }
|
||||||
void setGold(std::uint32_t gold) { m_Gold = gold; }
|
void setGold(std::uint32_t gold) { m_Gold = gold; }
|
||||||
|
|
||||||
|
std::uint32_t getEXP() const { return m_EXP; }
|
||||||
|
void setEXP(std::uint32_t exp) { m_EXP = exp; }
|
||||||
|
|
||||||
std::uint8_t getID() const { return m_ID; }
|
std::uint8_t getID() const { return m_ID; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user