mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
reviving
This commit is contained in:
@@ -23,6 +23,17 @@ struct FGameplayAbilitySpecHandle
|
||||
} */
|
||||
};
|
||||
|
||||
struct FGameplayAbilityActivationInfo // TODO Move
|
||||
{
|
||||
static UStruct* GetStruct()
|
||||
{
|
||||
static auto Struct = FindObject<UStruct>("/Script/GameplayAbilities.GameplayAbilityActivationInfo");
|
||||
return Struct;
|
||||
}
|
||||
|
||||
static int GetStructSize() { return GetStruct()->GetPropertiesSize(); }
|
||||
};
|
||||
|
||||
struct FGameplayAbilitySpec : FFastArraySerializerItem
|
||||
{
|
||||
static int GetStructSize()
|
||||
@@ -45,6 +56,12 @@ struct FGameplayAbilitySpec : FFastArraySerializerItem
|
||||
static auto HandleOffset = FindOffsetStruct("/Script/GameplayAbilities.GameplayAbilitySpec", "Handle");
|
||||
return *(FGameplayAbilitySpecHandle*)(__int64(this) + HandleOffset);
|
||||
}
|
||||
|
||||
FGameplayAbilityActivationInfo* GetActivationInfo()
|
||||
{
|
||||
static auto ActivationInfoOffset = FindOffsetStruct("/Script/GameplayAbilities.GameplayAbilitySpec", "ActivationInfo");
|
||||
return (FGameplayAbilityActivationInfo*)(__int64(this) + ActivationInfoOffset);
|
||||
}
|
||||
};
|
||||
|
||||
static FGameplayAbilitySpec* MakeNewSpec(UClass* GameplayAbilityClass, UObject* SourceObject = nullptr, bool bAlreadyIsDefault = false)
|
||||
|
||||
Reference in New Issue
Block a user