1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Rename HOOK_TYPE and its members

This commit is contained in:
Gymnasiast
2025-03-26 12:16:47 +01:00
parent 867b69a0f6
commit eaaba9fbfb
12 changed files with 90 additions and 90 deletions

View File

@@ -417,7 +417,7 @@ void GameNotifyMapChange()
auto& scriptEngine = GetContext()->GetScriptEngine();
auto& hookEngine = scriptEngine.GetHookEngine();
hookEngine.Call(HOOK_TYPE::MAP_CHANGE, false);
hookEngine.Call(HookType::mapChange, false);
_mapChangedExpected = true;
#endif
}
@@ -429,7 +429,7 @@ void GameNotifyMapChanged()
auto& scriptEngine = GetContext()->GetScriptEngine();
auto& hookEngine = scriptEngine.GetHookEngine();
hookEngine.Call(HOOK_TYPE::MAP_CHANGED, false);
hookEngine.Call(HookType::mapChanged, false);
_mapChangedExpected = false;
#endif
}
@@ -757,9 +757,9 @@ void PrepareMapForSave()
#ifdef ENABLE_SCRIPTING
auto& scriptEngine = GetContext()->GetScriptEngine();
auto& hookEngine = scriptEngine.GetHookEngine();
if (hookEngine.HasSubscriptions(OpenRCT2::Scripting::HOOK_TYPE::MAP_SAVE))
if (hookEngine.HasSubscriptions(OpenRCT2::Scripting::HookType::mapSave))
{
hookEngine.Call(OpenRCT2::Scripting::HOOK_TYPE::MAP_SAVE, false);
hookEngine.Call(OpenRCT2::Scripting::HookType::mapSave, false);
}
#endif
}