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
+4
View File
@@ -30,6 +30,10 @@ CharacterData::CharacterData(): Entity("character") {
});
}
int CharacterData::GetIndex() {
return index;
}
int CharacterData::GetOwner() {
return owner;
}