2024-04-21 15:56:57 -07:00
|
|
|
// Generated by GasaGen/GasaGen_UGasaAttributeSet.cpp
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "GasaAttributeSet.h"
|
|
|
|
#include "AbilitySystemComponent.h"
|
|
|
|
|
2024-04-22 22:10:02 -07:00
|
|
|
#pragma region Attribute Setters
|
2024-04-21 15:56:57 -07:00
|
|
|
FORCEINLINE
|
|
|
|
void UGasaAttributeSet::SetHealth( float NewVal )
|
|
|
|
{
|
|
|
|
UAbilitySystemComponent* AbilityComp = GetOwningAbilitySystemComponent();
|
|
|
|
if ( ensure( AbilityComp ) )
|
|
|
|
{
|
|
|
|
AbilityComp->SetNumericAttributeBase( GetHealthAttribute(), NewVal );
|
|
|
|
};
|
|
|
|
}
|
|
|
|
FORCEINLINE
|
|
|
|
void UGasaAttributeSet::SetMaxHealth( float NewVal )
|
|
|
|
{
|
|
|
|
UAbilitySystemComponent* AbilityComp = GetOwningAbilitySystemComponent();
|
|
|
|
if ( ensure( AbilityComp ) )
|
|
|
|
{
|
|
|
|
AbilityComp->SetNumericAttributeBase( GetMaxHealthAttribute(), NewVal );
|
|
|
|
};
|
|
|
|
}
|
|
|
|
FORCEINLINE
|
|
|
|
void UGasaAttributeSet::SetMana( float NewVal )
|
|
|
|
{
|
|
|
|
UAbilitySystemComponent* AbilityComp = GetOwningAbilitySystemComponent();
|
|
|
|
if ( ensure( AbilityComp ) )
|
|
|
|
{
|
|
|
|
AbilityComp->SetNumericAttributeBase( GetManaAttribute(), NewVal );
|
|
|
|
};
|
|
|
|
}
|
|
|
|
FORCEINLINE
|
|
|
|
void UGasaAttributeSet::SetMaxMana( float NewVal )
|
|
|
|
{
|
|
|
|
UAbilitySystemComponent* AbilityComp = GetOwningAbilitySystemComponent();
|
|
|
|
if ( ensure( AbilityComp ) )
|
|
|
|
{
|
|
|
|
AbilityComp->SetNumericAttributeBase( GetMaxManaAttribute(), NewVal );
|
|
|
|
};
|
|
|
|
}
|
2024-04-22 22:10:02 -07:00
|
|
|
#pragma endregion Attribute Setters
|
2024-04-21 15:56:57 -07:00
|
|
|
|
|
|
|
namespace Gasa
|
|
|
|
{
|
|
|
|
inline UGasaAttributeSet const* GetAttributeSet( UAbilitySystemComponent* ASC )
|
|
|
|
{
|
|
|
|
return Cast<UGasaAttributeSet>( ASC->GetAttributeSet( UGasaAttributeSet::StaticClass() ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|