Reorganized UnityEngine namespace

Reorganized UnityEngine namespace by splitting headers into individual classes
This commit is contained in:
Jadis0x
2024-06-07 19:07:09 +03:00
parent 0d3675c8cd
commit 0b90598356
26 changed files with 311 additions and 236 deletions

View File

@@ -0,0 +1,30 @@
#include "pch-il2cpp.h"
#include "UnityEngine/Object.h"
#include <string>
#include <helpers.h>
const char* Object::GetObjectName(app::Object_1* obj)
{
static std::string name = il2cppi_to_string(app::Object_1_GetName(obj, nullptr));
return name.c_str();
}
app::GameObject__Array* Object::FindGameObjectsWithTag(const char* tag)
{
app::GameObject__Array* go_array_result = app::GameObject_FindGameObjectsWithTag(ConvertToSystemString(tag), nullptr);
return go_array_result ? go_array_result : nullptr;
}
void Object::FindObjectFromInstanceID(int32_t instanceID)
{
}
bool Object::IsNull(app::Object_1* obj)
{
if (obj == nullptr)
return true;
return !app::Object_1_op_Implicit(obj, nullptr);
}