2024-10-22 10:25:27 -07:00
|
|
|
// Generated by GasaEditor/GasaGen/GasaGen_AttributeSets.cpp
|
2024-04-21 15:56:57 -07:00
|
|
|
#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
|
2024-10-22 10:25:27 -07:00
|
|
|
void UGasaAttributeSet::SetHealth( float NewVal )
|
2024-10-21 13:10:56 -07:00
|
|
|
{
|
|
|
|
UAbilitySystemComponent* AbilityComp = GetOwningAbilitySystemComponent();
|
|
|
|
if ( ensure( AbilityComp ) )
|
|
|
|
{
|
2024-10-22 10:25:27 -07:00
|
|
|
AbilityComp->SetNumericAttributeBase( GetHealthAttribute(), NewVal );
|
2024-10-21 13:10:56 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
FORCEINLINE
|
2024-10-22 10:25:27 -07:00
|
|
|
void UGasaAttributeSet::SetMana( float NewVal )
|
2024-10-21 13:10:56 -07:00
|
|
|
{
|
|
|
|
UAbilitySystemComponent* AbilityComp = GetOwningAbilitySystemComponent();
|
|
|
|
if ( ensure( AbilityComp ) )
|
|
|
|
{
|
2024-10-22 10:25:27 -07:00
|
|
|
AbilityComp->SetNumericAttributeBase( GetManaAttribute(), NewVal );
|
2024-10-21 13:10:56 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
FORCEINLINE
|
2024-10-22 10:25:27 -07:00
|
|
|
void UGasaAttributeSet::SetStrength( float NewVal )
|
2024-10-21 13:10:56 -07:00
|
|
|
{
|
|
|
|
UAbilitySystemComponent* AbilityComp = GetOwningAbilitySystemComponent();
|
|
|
|
if ( ensure( AbilityComp ) )
|
|
|
|
{
|
2024-10-22 10:25:27 -07:00
|
|
|
AbilityComp->SetNumericAttributeBase( GetStrengthAttribute(), NewVal );
|
2024-10-21 13:10:56 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
FORCEINLINE
|
2024-10-22 10:25:27 -07:00
|
|
|
void UGasaAttributeSet::SetIntelligence( float NewVal )
|
2024-10-21 13:10:56 -07:00
|
|
|
{
|
|
|
|
UAbilitySystemComponent* AbilityComp = GetOwningAbilitySystemComponent();
|
|
|
|
if ( ensure( AbilityComp ) )
|
|
|
|
{
|
2024-10-22 10:25:27 -07:00
|
|
|
AbilityComp->SetNumericAttributeBase( GetIntelligenceAttribute(), NewVal );
|
2024-10-21 13:10:56 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
FORCEINLINE
|
2024-10-22 10:25:27 -07:00
|
|
|
void UGasaAttributeSet::SetResilience( float NewVal )
|
2024-04-21 15:56:57 -07:00
|
|
|
{
|
|
|
|
UAbilitySystemComponent* AbilityComp = GetOwningAbilitySystemComponent();
|
|
|
|
if ( ensure( AbilityComp ) )
|
|
|
|
{
|
2024-10-22 10:25:27 -07:00
|
|
|
AbilityComp->SetNumericAttributeBase( GetResilienceAttribute(), NewVal );
|
2024-04-21 15:56:57 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
FORCEINLINE
|
2024-10-22 10:25:27 -07:00
|
|
|
void UGasaAttributeSet::SetVigor( float NewVal )
|
2024-04-21 15:56:57 -07:00
|
|
|
{
|
|
|
|
UAbilitySystemComponent* AbilityComp = GetOwningAbilitySystemComponent();
|
|
|
|
if ( ensure( AbilityComp ) )
|
|
|
|
{
|
2024-10-22 10:25:27 -07:00
|
|
|
AbilityComp->SetNumericAttributeBase( GetVigorAttribute(), NewVal );
|
2024-04-21 15:56:57 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
FORCEINLINE
|
2024-10-22 10:25:27 -07:00
|
|
|
void UGasaAttributeSet::SetMaxHealth( float NewVal )
|
2024-04-21 15:56:57 -07:00
|
|
|
{
|
|
|
|
UAbilitySystemComponent* AbilityComp = GetOwningAbilitySystemComponent();
|
|
|
|
if ( ensure( AbilityComp ) )
|
|
|
|
{
|
2024-10-22 10:25:27 -07:00
|
|
|
AbilityComp->SetNumericAttributeBase( GetMaxHealthAttribute(), NewVal );
|
2024-04-21 15:56:57 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
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() ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|