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 @@ -10,9 +10,9 @@ AModularAbilityPlayerState::AModularAbilityPlayerState(const FObjectInitializer&
{
}

UModularAbilitySystemComponent* AModularAbilityPlayerState::GetAbilitySystemComponent() const
UAbilitySystemComponent* AModularAbilityPlayerState::GetAbilitySystemComponent() const
{
return GetModularAbilitySystemComponent();
return ModularAbilitySystemComponent;
}

void AModularAbilityPlayerState::GetLifetimeReplicatedProps(TArray< FLifetimeProperty > & OutLifetimeProps) const
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
#pragma once

#include "AbilitySystemInterface.h"
#include "GameplayTagStack.h"
#include "ModularPlayerState.h"
#include "ActorComponent/ModularAbilitySystemComponent.h"
#include "Player/ModularExperiencePlayerState.h"

#include "ModularAbilityPlayerState.generated.h"

UCLASS(Config = "Game")
class MODULARGAMEPLAYABILITIES_API AModularAbilityPlayerState : public AModularExperiencePlayerState
class MODULARGAMEPLAYABILITIES_API AModularAbilityPlayerState : public AModularExperiencePlayerState, public IAbilitySystemInterface
{
GENERATED_BODY()

public:
AModularAbilityPlayerState(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());

//~ Begin IAbilitySystemInterface
virtual UAbilitySystemComponent* GetAbilitySystemComponent() const override;
//~ End IAbilitySystemInterface

UFUNCTION(BlueprintCallable, Category = "Lyra|PlayerState")
UModularAbilitySystemComponent* GetModularAbilitySystemComponent() const { return ModularAbilitySystemComponent; }
virtual UModularAbilitySystemComponent* GetAbilitySystemComponent() const;

// Adds a specified number of stacks to the tag (does nothing if StackCount is below 1).
UFUNCTION(BlueprintCallable, BlueprintAuthorityOnly, Category = "ModularAbility")
Expand Down