mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
14 lines
508 B
C++
14 lines
508 B
C++
#pragma once
|
|
|
|
#include "Object.h"
|
|
|
|
#define ANY_PACKAGE (UObject*)-1
|
|
|
|
extern inline UObject* (*StaticFindObjectOriginal)(UClass* Class, UObject* InOuter, const TCHAR* Name, bool ExactClass) = nullptr;
|
|
|
|
template <typename T = UObject>
|
|
static inline T* StaticFindObject(UClass* Class, UObject* InOuter, const TCHAR* Name, bool ExactClass = false)
|
|
{
|
|
// LOG_INFO(LogDev, "StaticFindObjectOriginal: {}", __int64(StaticFindObjectOriginal));
|
|
return (T*)StaticFindObjectOriginal(Class, InOuter, Name, ExactClass);
|
|
} |