Files
realms-in-ruin-dev/Source/REALMSINRUIN/Public/Player/RIRPlayerState.h
T
tedwardsandCursor ff5640a020 Establish UE 5.8 known-good baseline with Batch 1 archaeology docs.
Initialize Git with LFS for binary assets and add standard Unreal Engine .gitignore/.gitattributes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 19:40:19 -07:00

39 lines
1.1 KiB
C++

// REALMS IN RUIN. Copyright (c) 2025 Trevor Edwards. All rights reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerState.h"
#include "AbilitySystemInterface.h"
#include "RIRPlayerState.generated.h"
class UAbilitySystemComponent;
class UAttributeSet;
class UGameplayEffect;
class UGameplayAbility;
UCLASS()
class REALMSINRUIN_API ARIRPlayerState : public APlayerState, public IAbilitySystemInterface
{
GENERATED_BODY()
public:
ARIRPlayerState();
// Implementation of IAbilitySystemInterface
virtual UAbilitySystemComponent* GetAbilitySystemComponent() const override;
// Custom getter for the attribute set
UAttributeSet* GetAttributeSet() const { return AttributeSet; }
// Default attribute effect to apply on spawn
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Attributes")
TSubclassOf<UGameplayEffect> DefaultAttributesGameplayEffect;
protected:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Abilities")
TObjectPtr<UAbilitySystemComponent> AbilitySystemComponent;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Attributes")
TObjectPtr<UAttributeSet> AttributeSet;
};