1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +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

@@ -469,7 +469,7 @@ bool EntityBase::Is<Vehicle>() const
static void InvokeVehicleCrashHook(const EntityId vehicleId, const std::string_view crashId)
{
auto& hookEngine = OpenRCT2::GetContext()->GetScriptEngine().GetHookEngine();
if (hookEngine.HasSubscriptions(OpenRCT2::Scripting::HOOK_TYPE::VEHICLE_CRASH))
if (hookEngine.HasSubscriptions(OpenRCT2::Scripting::HookType::vehicleCrash))
{
auto ctx = OpenRCT2::GetContext()->GetScriptEngine().GetContext();
@@ -480,7 +480,7 @@ static void InvokeVehicleCrashHook(const EntityId vehicleId, const std::string_v
// Call the subscriptions
auto e = obj.Take();
hookEngine.Call(OpenRCT2::Scripting::HOOK_TYPE::VEHICLE_CRASH, e, true);
hookEngine.Call(OpenRCT2::Scripting::HookType::vehicleCrash, e, true);
}
}
#endif