mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
22 lines
527 B
Plaintext
22 lines
527 B
Plaintext
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "AttributeSet.h"
|
|
#include "AbilitySystemComponent.h"
|
|
#include "CogAbilitySystemComponent.generated.h"
|
|
|
|
UCLASS(BlueprintType)
|
|
class UCogAbilitySystemComponent : public UAbilitySystemComponent
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
|
|
template <class T>
|
|
const T* GetAttributeSet() const
|
|
{
|
|
UClass* DesiredClass = T::StaticClass();
|
|
check(DesiredClass->IsChildOf(UAttributeSet::StaticClass()));
|
|
return Cast<T>(Super::GetAttributeSet(DesiredClass));
|
|
}
|
|
}; |