Gameplay Abilities! Lesson 98!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user