WaypointManager is no longer a Singleton, wrote waypoint API outline
I'm planning on giving each room it's own waypoint manager, so it can compare it's waypoints against the characters in that room alone. If it turns out to be a good pattern, I'll do thae same for monsters.
This commit is contained in:
@@ -105,7 +105,6 @@ void ServerApplication::Init(int argc, char* argv[]) {
|
||||
characterMgr.SetDatabase(database);
|
||||
|
||||
roomMgr.SetLuaState(luaState);
|
||||
waypointMgr.SetLuaState(luaState);
|
||||
|
||||
std::cout << "Internal managers initialized" << std::endl;
|
||||
|
||||
@@ -204,7 +203,6 @@ void ServerApplication::Quit() {
|
||||
clientMgr.UnloadAll();
|
||||
monsterMgr.UnloadAll();
|
||||
roomMgr.UnloadAll();
|
||||
waypointMgr.UnloadAll();
|
||||
|
||||
//APIs
|
||||
lua_close(luaState);
|
||||
|
||||
Reference in New Issue
Block a user