1使用代理去简化,属性的实现
DECLARE_DELEGATE_REVAL(FGameplayAttribute, FAttributeSignature);
替换为
TBaseStaticDelegateInstance<FGameplayAttribute(), FDefaultDelegateUserPolicy>::FFuncPtr
还可以替换为
FGameplayAttribute(*)()
使用了别名
typedef TBaseStaticDelegateInstance<FGameplayAttribute(), FDefaultDelegateUserPolicy>::FFuncPtr FAttributeFuncPtr;
使用了泛型
template<class T>
using TStaticFuncPtr = typename TBaseStaticDelegateInstance<T, FDefaultDelegateUserPolicy>::FFuncPtr;
浙公网安备 33010602011771号