Add PHY character framework

This commit is contained in:
2026-04-26 00:33:28 +08:00
parent 5aacc79f03
commit acaa8eb83c
25 changed files with 1784 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
// Copyright Epic Games, Inc. All Rights Reserved.
#include "Player/PHYPlayerState.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(PHYPlayerState)
#include "GGA_AbilitySystemComponent.h"
APHYPlayerState::APHYPlayerState(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
SetNetUpdateFrequency(100.0f);
AbilitySystemComponent = CreateDefaultSubobject<UGGA_AbilitySystemComponent>(TEXT("AbilitySystemComponent"));
AbilitySystemComponent->SetIsReplicated(true);
AbilitySystemComponent->SetReplicationMode(EGameplayEffectReplicationMode::Mixed);
}
UAbilitySystemComponent* APHYPlayerState::GetAbilitySystemComponent() const
{
return AbilitySystemComponent;
}