initial commit of the files

This commit is contained in:
2024-04-13 11:42:25 +02:00
commit 8f161be085
25 changed files with 1661065 additions and 0 deletions

22
lib/object.cpp Normal file
View File

@@ -0,0 +1,22 @@
#include "pch-il2cpp.h"
#include "object.h"
#include "helpers.h"
app::GameObject* GameObject::FindWithTag(const char* tag)
{
Il2CppString* newStr = il2cpp_string_new(tag);
app::String* convert_to_appString = reinterpret_cast<app::String*>(newStr);
if (app::GameObject_FindWithTag(convert_to_appString, nullptr)) {
return app::GameObject_FindWithTag(convert_to_appString, nullptr);
}
return nullptr;
}
template<typename T>
inline T* GameObject::GetComponent()
{
return nullptr;
}