Merge branch 'develop'
This commit is contained in:
@@ -144,9 +144,16 @@ void ServerApplication::Quit() {
|
|||||||
std::cout << "Shutting down" << std::endl;
|
std::cout << "Shutting down" << std::endl;
|
||||||
|
|
||||||
//save the server state
|
//save the server state
|
||||||
//TODO: save the existing players
|
for (auto& it : accountMap) {
|
||||||
|
SaveUserAccount(it.first);
|
||||||
|
}
|
||||||
|
for (auto& it : characterMap) {
|
||||||
|
SaveCharacter(it.first);
|
||||||
|
}
|
||||||
|
|
||||||
//empty the members
|
//empty the members
|
||||||
|
accountMap.clear();
|
||||||
|
characterMap.clear();
|
||||||
regionPager.UnloadAll();
|
regionPager.UnloadAll();
|
||||||
|
|
||||||
//APIs
|
//APIs
|
||||||
|
|||||||
Reference in New Issue
Block a user