mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
48
dependencies/reboot/Project Reboot 3.0/AttributeSet.h
vendored
Normal file
48
dependencies/reboot/Project Reboot 3.0/AttributeSet.h
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
#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";
|
||||
|
||||
return GetFNameOfProp(Attribute)->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
|
||||
{
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user