GASATHON/Project/Source/Gasa/AbilitySystem/GasaAbilitySystemComponent.h

30 lines
560 B
C
Raw Normal View History

2024-04-13 07:19:45 -07:00
#pragma once
#include "AbilitySystemComponent.h"
2024-04-13 08:09:22 -07:00
#include "AbilitySystemInterface.h"
#include "GasaCommon.h"
2024-04-13 07:19:45 -07:00
#include "GasaAbilitySystemComponent.generated.h"
2024-04-13 08:09:22 -07:00
2024-04-13 07:19:45 -07:00
UCLASS()
class GASA_API UGasaAbilitySystemComp : public UAbilitySystemComponent
{
GENERATED_BODY()
public:
};
2024-04-13 08:09:22 -07:00
namespace Gasa
{
inline
UGasaAbilitySystemComp* GetAbilitySystem(UObject* Object)
{
if (Object->Implements<UAbilitySystemInterface>())
{
return Cast<UGasaAbilitySystemComp>( Cast<IAbilitySystemInterface>(Object)->GetAbilitySystemComponent() );
}
return nullptr;
}
}