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

@@ -2,7 +2,7 @@
#include <iostream>
#include "ClientHelper.h"
#include "UnityEngine.h"
#include "UnityEngine/Engine.hpp"
#include "players/players.h"
#include "helpers.h"
#include "esp.hpp"
@@ -31,11 +31,11 @@ static void DrawBoxESP(app::GameObject *it, float footOffset, float headOffset,
if (!it || cam == nullptr)
return;
app::Transform* _transform = UnityEngine::Transform::Get(it);
app::Transform* _transform = Transform::Get(it);
if (_transform == nullptr)
return;
app::Vector3 pos = UnityEngine::Transform::Position(_transform);
app::Vector3 pos = Transform::Position(_transform);
app::Vector3 footpos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{pos.x, pos.y + footOffset, pos.z}, NULL);
app::Vector3 headpos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{pos.x, pos.y + headOffset, pos.z}, NULL);