34. Listening for Attribute Changes

This commit is contained in:
2024-04-22 00:30:29 -04:00
parent 811dc33f4a
commit 2c11939244
34 changed files with 324 additions and 60 deletions

View File

@ -8,9 +8,9 @@
UGasaAttributeSet::UGasaAttributeSet()
{
InitHealth( 100.f );
InitHealth( 80.f );
InitMaxHealth( 100.f );
InitMana( 50.f );
InitMana( 20.f );
InitMaxMana( 50.f );
}
@ -33,7 +33,6 @@ void UGasaAttributeSet::Client_OnRep_MaxMana( FGameplayAttributeData& PrevMaxMan
{
GAMEPLAYATTRIBUTE_REPNOTIFY( UGasaAttributeSet, MaxMana, PrevMaxMana )
}
void UGasaAttributeSet::GetLifetimeReplicatedProps( TArray<FLifetimeProperty>& OutLifetimeProps ) const
{
Super::GetLifetimeReplicatedProps( OutLifetimeProps );

View File

@ -90,7 +90,6 @@ public:
#pragma endregion Setters
#pragma region UObject
void
GetLifetimeReplicatedProps( TArray<FLifetimeProperty>& OutLifetimeProps ) const override;
#pragma endregion UObject