Added lua, added db connection to PlayerManager

I've also revised the startup process a bit.
This commit is contained in:
Kayne Ruse
2014-03-05 00:27:21 +11:00
parent 756d4e770d
commit f17fa0f345
6 changed files with 65 additions and 18 deletions
+6
View File
@@ -37,6 +37,12 @@ int PlayerManager::HandlePlayerUnload(int uniqueID) {
//
}
void PlayerManager::ForEach(Lambda fn) {
for(Iterator it = playerMap.begin(); it != playerMap.end(); it++) {
fn(it);
}
}
PlayerEntry* PlayerManager::GetPlayer(int uniqueID) {
for (auto& it : playerMap) {
if (it.first == uniqueID) {