Skip to content

Commit

Permalink
Update shared lib
Browse files Browse the repository at this point in the history
  • Loading branch information
psiberx committed Mar 22, 2022
1 parent c8dde81 commit 9928710
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/Engine/Scripting/RTTIClass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class RTTIClassDescriptor : public RED4ext::TTypedClass<T>, public detail::TypeD

auto* desc = reinterpret_cast<FinalDescriptor*>(s_class);

T::OnBuild(desc, rtti);
T::OnDescribe(desc, rtti);

// Force native flag
s_class->flags.isNative = true;
Expand Down Expand Up @@ -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) {}
};
}
2 changes: 1 addition & 1 deletion src/App/Scripting/ScriptedManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion src/App/Scripting/ScriptedManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ class ScriptedManager : public Engine::RTTIClass<ScriptedManager>

friend Descriptor;
static void OnRegister(Descriptor* aType);
static void OnBuild(Descriptor* aType, RED4ext::CRTTISystem* aRtti);
static void OnDescribe(Descriptor* aType, RED4ext::CRTTISystem* aRtti);
};
}
2 changes: 1 addition & 1 deletion src/App/TweakLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion src/App/TweakLoader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
}

0 comments on commit 9928710

Please sign in to comment.