#pragma once // Dumped with Dumper-7! #include "pch.h" #include "../SDK.hpp" namespace SDK { void InitGObjects() { UObject::GObjects = reinterpret_cast(uintptr_t(GetModuleHandle(0)) + Offsets::GObjects); } FString FSoftObjectPtr::GetSubPathString() { return ObjectID.SubPathString; } std::string FSoftObjectPtr::GetSubPathStringStr() { return ObjectID.SubPathString.ToString(); } template SoftObjectPath& FSoftObjectPtr::GetObjectPath() { static_assert(std::is_same_v, "Only use this with FSoftObjectPath. This function is only templated as a workaround to C++ type-checks."); return reinterpret_cast(ObjectID); } void Dummy() { FSoftObjectPtr().GetObjectPath(); } class UObject* FWeakObjectPtr::Get() const { return UObject::GObjects->GetByIndex(ObjectIndex); } class UObject* FWeakObjectPtr::operator->() const { return UObject::GObjects->GetByIndex(ObjectIndex); } bool FWeakObjectPtr::operator==(const FWeakObjectPtr& Other) const { return ObjectIndex == Other.ObjectIndex; } bool FWeakObjectPtr::operator!=(const FWeakObjectPtr& Other) const { return ObjectIndex != Other.ObjectIndex; } bool FWeakObjectPtr::operator==(const class UObject* Other) const { return ObjectIndex == Other->Index; } bool FWeakObjectPtr::operator!=(const class UObject* Other) const { return ObjectIndex != Other->Index; } }