Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

#include UE_INLINE_GENERATED_CPP_BY_NAME(ModularAbilityPlayerState)

FName AModularAbilityPlayerState::AbilitySystemComponentName(TEXT("ModularAbilitySystemComponent"));

AModularAbilityPlayerState::AModularAbilityPlayerState(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
ModularAbilitySystemComponent = CreateDefaultSubobject<UModularAbilitySystemComponent>(AModularAbilityPlayerState::AbilitySystemComponentName);
}

UModularAbilitySystemComponent* AModularAbilityPlayerState::GetAbilitySystemComponent() const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class MODULARGAMEPLAYABILITIES_API AModularAbilityPlayerState : public AModularE
bool HasStatTag(FGameplayTag Tag) const;

void GetLifetimeReplicatedProps(TArray< FLifetimeProperty > & OutLifetimeProps) const;
public:
/*Name of the AbilitySystem component. Use this name if you want to use a different class (with ObjectInitializer.SetDefaultSubobjectClass).*/
static FName AbilitySystemComponentName;

private:
// The ability system component sub-object used by player characters.
Expand Down