Ed_
99a23529e6
There is some jank, with the ability system init on character (I'll fix later). Cog replaces the usuals showdebug command
30 lines
573 B
C++
30 lines
573 B
C++
#pragma once
|
|
|
|
#include "AbilitySystemComponent.h"
|
|
#include "AbilitySystemInterface.h"
|
|
|
|
#include "GasaCommon.h"
|
|
|
|
#include "GasaAbilitySystemComponent.generated.h"
|
|
|
|
|
|
UCLASS(BlueprintType)
|
|
class GASA_API UGasaAbilitySystemComp : public UAbilitySystemComponent
|
|
{
|
|
GENERATED_BODY()
|
|
public:
|
|
};
|
|
|
|
namespace Gasa
|
|
{
|
|
inline
|
|
UGasaAbilitySystemComp* GetAbilitySystem(UObject* Object)
|
|
{
|
|
if (Object->Implements<UAbilitySystemInterface>())
|
|
{
|
|
return Cast<UGasaAbilitySystemComp>( Cast<IAbilitySystemInterface>(Object)->GetAbilitySystemComponent() );
|
|
}
|
|
return nullptr;
|
|
}
|
|
}
|