[Code] WorldEventScheduler and ZoneEventScheduler Global to Singleton Cleanup (#4932)

This commit is contained in:
Alex King
2025-06-25 15:47:37 -04:00
committed by GitHub
parent f304f9cc61
commit 967a13e692
5 changed files with 17 additions and 10 deletions
+1 -3
View File
@@ -224,8 +224,6 @@ void WorldBoot::RegisterLoginservers()
}
}
extern WorldEventScheduler event_scheduler;
bool WorldBoot::DatabaseLoadRoutines(int argc, char **argv)
{
// logging system init
@@ -389,7 +387,7 @@ bool WorldBoot::DatabaseLoadRoutines(int argc, char **argv)
content_db.LoadCharacterCreateCombos();
LogInfo("Initializing [EventScheduler]");
event_scheduler.SetDatabase(&database)->LoadScheduledEvents();
WorldEventScheduler::Instance()->SetDatabase(&database)->LoadScheduledEvents();
LogInfo("Initializing [WorldContentService]");
content_service.SetDatabase(&database)