Added index to CharacterData, removed some expensive lookups

This commit is contained in:
2016-08-25 23:23:57 +10:00
parent 518ea93adc
commit 64833f86da
5 changed files with 27 additions and 28 deletions
+2
View File
@@ -36,6 +36,7 @@ public:
~CharacterData() = default;
//database stuff
int GetIndex();
int GetOwner();
std::string GetHandle();
std::string GetAvatar();
@@ -44,6 +45,7 @@ public:
private:
friend class CharacterManager;
int index = -1;
int owner = -1;
std::string handle;
std::string avatar;