mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
fix some bug with remvoing items, add experimental stat saving for gadgets, fix shadow stones scuffy
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "reboot.h"
|
|
|
|
class UAttributeSet : public UObject
|
|
{
|
|
public:
|
|
};
|
|
|
|
struct FGameplayAttribute
|
|
{
|
|
FString AttributeName;
|
|
void* Attribute; // Property
|
|
UStruct* AttributeOwner;
|
|
|
|
std::string GetAttributeName()
|
|
{
|
|
return AttributeName.ToString();
|
|
}
|
|
|
|
std::string GetAttributePropertyName()
|
|
{
|
|
if (!Attribute)
|
|
return "INVALIDATTRIBUTE";
|
|
|
|
FName* NamePrivate = nullptr;
|
|
|
|
if (Engine_Version >= 425)
|
|
NamePrivate = (FName*)(__int64(Attribute) + 0x28);
|
|
else
|
|
NamePrivate = &((UField*)Attribute)->NamePrivate;
|
|
|
|
return NamePrivate->ToString();
|
|
}
|
|
};
|
|
|
|
struct FGameplayAttributeData
|
|
{
|
|
float& GetBaseValue()
|
|
{
|
|
static auto BaseValueOffset = FindOffsetStruct("/Script/GameplayAbilities.GameplayAttributeData", "BaseValue");
|
|
return *(float*)(__int64(this) + BaseValueOffset);
|
|
}
|
|
|
|
float& GetCurrentValue()
|
|
{
|
|
static auto CurrentValueOffset = FindOffsetStruct("/Script/GameplayAbilities.GameplayAttributeData", "CurrentValue");
|
|
return *(float*)(__int64(this) + CurrentValueOffset);
|
|
}
|
|
};
|
|
|
|
struct FFortGameplayAttributeData : public FGameplayAttributeData
|
|
{
|
|
|
|
}; |