GASATHON/Project/Source/Gasa/AbilitySystem/GasaAbilitySystemComponent.h
Ed_ c2e5793a7d 25. Attribut accessors complete
There is some jank, with the ability system init on character (I'll fix later).
Cog replaces the usuals showdebug command
2024-04-13 18:35:19 -04:00

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;
}
}