GASATHON/Project/Source/Gasa/Game/GasaPlayerState.cpp
Ed_ c2e5793a7d 25. Attribut accessors complete
There is some jank, with the ability system init on character (I'll fix later).
Cog replaces the usuals showdebug command
2024-04-13 18:35:19 -04:00

17 lines
490 B
C++

#include "GasaPlayerState.h"
#include "AbilitySystem/GasaAbilitySystemComponent.h"
#include "AbilitySystem/GasaAttributeSet.h"
AGasaPlayerState::AGasaPlayerState()
{
AbilitySystem = CreateDefaultSubobject<UGasaAbilitySystemComp>("Ability System");
AbilitySystem->SetIsReplicated(true);
AbilitySystem->SetReplicationMode(EGameplayEffectReplicationMode::Mixed);
Attributes = CreateDefaultSubobject<UGasaAttributeSet>("Attributes");
// Replication
NetUpdateFrequency = 100.f;
}