20. Constructing the ASC and AS

This commit is contained in:
2024-04-13 11:09:22 -04:00
parent e465749f9a
commit 931edffc7c
10 changed files with 99 additions and 2 deletions

View File

@ -0,0 +1,4 @@
#pragma once
#include "GasaCommon.h"

View File

@ -1,12 +1,29 @@
#pragma once
#include "AbilitySystemComponent.h"
#include "AbilitySystemInterface.h"
#include "GasaCommon.h"
#include "GasaAbilitySystemComponent.generated.h"
UCLASS()
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;
}
}