Revert " refactor: ServerEvent - OnStartup, OnBeforeConfigLoad, OnConfigLoad" (#317)

This commit is contained in:
iThorgrim
2025-09-17 16:43:35 +02:00
committed by GitHub
parent b559d02658
commit 058bc63ea4
5 changed files with 13 additions and 33 deletions

View File

@@ -227,10 +227,11 @@ void Eluna::OnOpenStateChange(bool open)
CallAllFunctions(ServerEventBindings, key);
}
void Eluna::OnAfterConfigLoad(bool reload)
void Eluna::OnConfigLoad(bool reload, bool isBefore)
{
START_HOOK(WORLD_EVENT_ON_AFTER_CONFIG_LOAD);
START_HOOK(WORLD_EVENT_ON_CONFIG_LOAD);
Push(reload);
Push(isBefore);
CallAllFunctions(ServerEventBindings, key);
}
@@ -277,19 +278,6 @@ void Eluna::OnShutdown()
CallAllFunctions(ServerEventBindings, key);
}
void Eluna::OnBeforeWorldInitialized()
{
START_HOOK(WORLD_EVENT_ON_BEFORE_WORLD_INITIALIZED);
CallAllFunctions(ServerEventBindings, key);
}
void Eluna::OnBeforeConfigLoad(bool reload)
{
START_HOOK(WORLD_EVENT_ON_BEFORE_CONFIG_LOAD);
Push(reload);
CallAllFunctions(ServerEventBindings, key);
}
/* Map */
void Eluna::OnCreate(Map* map)
{