diff --git a/lib/Engine/Scripting/RTTIClass.hpp b/lib/Engine/Scripting/RTTIClass.hpp index a045361..2bfdf42 100644 --- a/lib/Engine/Scripting/RTTIClass.hpp +++ b/lib/Engine/Scripting/RTTIClass.hpp @@ -120,7 +120,7 @@ class RTTIClassDescriptor : public RED4ext::TTypedClass, public detail::TypeD auto* desc = reinterpret_cast(s_class); - T::OnBuild(desc, rtti); + T::OnDescribe(desc, rtti); // Force native flag s_class->flags.isNative = true; @@ -202,6 +202,6 @@ class RTTIClass : public P friend Descriptor; static void OnRegister(Descriptor* aType) {} - static void OnBuild(Descriptor* aType, RED4ext::CRTTISystem* aRtti) {} + static void OnDescribe(Descriptor* aType, RED4ext::CRTTISystem* aRtti) {} }; } diff --git a/src/App/Scripting/ScriptedManager.cpp b/src/App/Scripting/ScriptedManager.cpp index 783fe21..a03b99f 100644 --- a/src/App/Scripting/ScriptedManager.cpp +++ b/src/App/Scripting/ScriptedManager.cpp @@ -130,7 +130,7 @@ void App::ScriptedManager::OnRegister(Descriptor* aType) aType->SetFlags({ .isAbstract = true }); } -void App::ScriptedManager::OnBuild(Descriptor* aType, RED4ext::CRTTISystem* aRtti) +void App::ScriptedManager::OnDescribe(Descriptor* aType, RED4ext::CRTTISystem* aRtti) { { auto func = aType->AddFunction(&SetFlat, "SetFlat", { .isFinal = true }); diff --git a/src/App/Scripting/ScriptedManager.hpp b/src/App/Scripting/ScriptedManager.hpp index 4a81d3e..73a9646 100644 --- a/src/App/Scripting/ScriptedManager.hpp +++ b/src/App/Scripting/ScriptedManager.hpp @@ -21,6 +21,6 @@ class ScriptedManager : public Engine::RTTIClass friend Descriptor; static void OnRegister(Descriptor* aType); - static void OnBuild(Descriptor* aType, RED4ext::CRTTISystem* aRtti); + static void OnDescribe(Descriptor* aType, RED4ext::CRTTISystem* aRtti); }; } diff --git a/src/App/TweakLoader.cpp b/src/App/TweakLoader.cpp index 62e2018..bc981c4 100644 --- a/src/App/TweakLoader.cpp +++ b/src/App/TweakLoader.cpp @@ -25,7 +25,7 @@ void App::TweakLoader::OnRegister(Descriptor* aType) aType->SetFlags({ .isAbstract = true }); } -void App::TweakLoader::OnBuild(Descriptor* aType, RED4ext::CRTTISystem* aRtti) +void App::TweakLoader::OnDescribe(Descriptor* aType, RED4ext::CRTTISystem* aRtti) { aType->AddFunction<&Reload>("Reload", { .isFinal = true }); aType->AddFunction<&ImportAll>("ImportAll", { .isFinal = true }); diff --git a/src/App/TweakLoader.hpp b/src/App/TweakLoader.hpp index 51bea29..07eba26 100644 --- a/src/App/TweakLoader.hpp +++ b/src/App/TweakLoader.hpp @@ -28,6 +28,6 @@ class TweakLoader friend Descriptor; static void OnRegister(Descriptor* aType); - static void OnBuild(Descriptor* aType, RED4ext::CRTTISystem* aRtti); + static void OnDescribe(Descriptor* aType, RED4ext::CRTTISystem* aRtti); }; }