Gameplay Abilities! Lesson 98!

This commit is contained in:
2025-10-15 20:11:02 -04:00
parent d110a61320
commit 99439dcee7
55 changed files with 10247 additions and 14435 deletions

View File

@@ -13,6 +13,8 @@ GAMEPLAYATTRIBUTE_VALUE_GETTER(PropertyName) \
GAMEPLAYATTRIBUTE_VALUE_SETTER(PropertyName) \
GAMEPLAYATTRIBUTE_VALUE_INITTER(PropertyName)
DECLARE_DELEGATE_RetVal(FGameplayAttribute, FAttributeSignature);
USTRUCT()
struct FEffectProperties
{
@@ -42,7 +44,8 @@ struct FEffectProperties
ACharacter* TargetCharacter = nullptr;
};
template<class T>
using TStaticFuncPtr = typename TBaseStaticDelegateInstance<T, FDefaultDelegateUserPolicy>::FFuncPtr;
/**
@@ -58,7 +61,8 @@ public:
virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
virtual void PreAttributeChange(const FGameplayAttribute& Attribute, float& NewValue) override;
virtual void PostGameplayEffectExecute(const struct FGameplayEffectModCallbackData& Data) override;
TMap<FGameplayTag, TStaticFuncPtr<FGameplayAttribute()>> TagsToAttributes;
/*Create Attributes
* Vital Attributes