2024-04-13 10:19:45 -04:00
|
|
|
|
#include "GasaPlayerState.h"
|
|
|
|
|
|
2024-04-13 11:09:22 -04:00
|
|
|
|
#include "AbilitySystem/GasaAbilitySystemComponent.h"
|
2024-04-13 18:35:19 -04:00
|
|
|
|
#include "AbilitySystem/GasaAttributeSet.h"
|
2024-04-13 11:09:22 -04:00
|
|
|
|
|
2024-04-13 10:19:45 -04:00
|
|
|
|
AGasaPlayerState::AGasaPlayerState()
|
|
|
|
|
{
|
2024-04-13 11:09:22 -04:00
|
|
|
|
AbilitySystem = CreateDefaultSubobject<UGasaAbilitySystemComp>("Ability System");
|
|
|
|
|
AbilitySystem->SetIsReplicated(true);
|
2024-04-13 11:56:19 -04:00
|
|
|
|
AbilitySystem->SetReplicationMode(EGameplayEffectReplicationMode::Mixed);
|
2024-04-13 11:09:22 -04:00
|
|
|
|
|
2024-04-13 18:35:19 -04:00
|
|
|
|
Attributes = CreateDefaultSubobject<UGasaAttributeSet>("Attributes");
|
2024-04-13 11:09:22 -04:00
|
|
|
|
|
2024-04-13 10:19:45 -04:00
|
|
|
|
// Replication
|
|
|
|
|
NetUpdateFrequency = 100.f;
|
|
|
|
|
}
|