mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 10:44:08 +00:00
format codebase
This commit is contained in:
20
dGame/User.h
20
dGame/User.h
@@ -10,7 +10,7 @@
|
||||
|
||||
class Character;
|
||||
|
||||
struct BehaviorParams{
|
||||
struct BehaviorParams {
|
||||
uint32_t behavior;
|
||||
LWOOBJID objid;
|
||||
bool followup;
|
||||
@@ -23,21 +23,21 @@ public:
|
||||
~User();
|
||||
User& operator=(const User& other);
|
||||
bool operator==(const User& other) const;
|
||||
|
||||
|
||||
uint32_t GetAccountID() { return m_AccountID; }
|
||||
std::string& GetUsername() { return m_Username; }
|
||||
std::string& GetSessionKey() { return m_SessionKey; }
|
||||
SystemAddress& GetSystemAddress() { return m_SystemAddress; }
|
||||
|
||||
|
||||
uint32_t GetMaxGMLevel() { return m_MaxGMLevel; }
|
||||
uint32_t GetLastCharID() { return m_LastCharID; }
|
||||
void SetLastCharID(uint32_t newCharID) { m_LastCharID = newCharID; }
|
||||
|
||||
|
||||
std::vector<Character*>& GetCharacters() { return m_Characters; }
|
||||
Character* GetLastUsedChar();
|
||||
|
||||
void SetLoggedInChar(const LWOOBJID& objID) { m_LoggedInCharID = objID; }
|
||||
LWOOBJID& GetLoggedInChar() { return m_LoggedInCharID; }
|
||||
|
||||
void SetLoggedInChar(const LWOOBJID& objID) { m_LoggedInCharID = objID; }
|
||||
LWOOBJID& GetLoggedInChar() { return m_LoggedInCharID; }
|
||||
|
||||
bool GetLastChatMessageApproved() { return m_LastChatMessageApproved; }
|
||||
void SetLastChatMessageApproved(bool approved) { m_LastChatMessageApproved = approved; }
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
|
||||
// Added for GameMessageHandler
|
||||
std::unordered_map<uint32_t, BehaviorParams> uiBehaviorHandles;
|
||||
|
||||
|
||||
void UserOutOfSync();
|
||||
|
||||
private:
|
||||
@@ -60,11 +60,11 @@ private:
|
||||
std::string m_Username;
|
||||
std::string m_SessionKey;
|
||||
SystemAddress m_SystemAddress;
|
||||
|
||||
|
||||
uint32_t m_MaxGMLevel; //The max GM level this account can assign to it's characters
|
||||
uint32_t m_LastCharID;
|
||||
std::vector<Character*> m_Characters;
|
||||
LWOOBJID m_LoggedInCharID;
|
||||
LWOOBJID m_LoggedInCharID;
|
||||
|
||||
std::unordered_map<std::string, bool> m_IsBestFriendMap;
|
||||
|
||||
|
Reference in New Issue
Block a user