Added lua, added db connection to PlayerManager
I've also revised the startup process a bit.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user