RealtimeStyleTransferRuntime/Source/LyraGame/Character/LyraCharacterWithAbilities.h

34 lines
1017 B
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Character/LyraCharacter.h"
2022-09-13 07:18:28 +00:00
#include "UObject/UObjectGlobals.h"
2022-05-23 18:41:30 +00:00
#include "LyraCharacterWithAbilities.generated.h"
2022-09-13 07:18:28 +00:00
class UAbilitySystemComponent;
class ULyraAbilitySystemComponent;
class UObject;
2022-05-23 18:41:30 +00:00
// ALyraCharacter typically gets the ability system component from the possessing player state
// This represents a character with a self-contained ability system component.
UCLASS(Blueprintable)
2022-09-13 07:18:28 +00:00
class LYRAGAME_API ALyraCharacterWithAbilities : public ALyraCharacter
2022-05-23 18:41:30 +00:00
{
GENERATED_BODY()
public:
ALyraCharacterWithAbilities(const FObjectInitializer& ObjectInitializer);
virtual void PostInitializeComponents() override;
virtual UAbilitySystemComponent* GetAbilitySystemComponent() const override;
private:
// The ability system component sub-object used by player characters.
UPROPERTY(VisibleAnywhere, Category = "Lyra|PlayerState")
2022-09-13 07:18:28 +00:00
TObjectPtr<ULyraAbilitySystemComponent> AbilitySystemComponent;
2022-05-23 18:41:30 +00:00
};