GASATHON/Project/Source/Gasa/Game/GasaPlayerState.h

39 lines
990 B
C
Raw Normal View History

2024-04-13 07:19:45 -07:00
#pragma once
2024-04-13 08:09:22 -07:00
#include "AbilitySystemInterface.h"
2024-04-13 07:19:45 -07:00
#include "GameFramework/PlayerState.h"
2024-04-13 08:09:22 -07:00
#include "GasaCommon.h"
2024-04-13 07:19:45 -07:00
#include "GasaPlayerState.generated.h"
UCLASS(Blueprintable)
class GASA_API AGasaPlayerState : public APlayerState
2024-04-13 08:09:22 -07:00
, public IAbilitySystemInterface
2024-04-13 07:19:45 -07:00
{
GENERATED_BODY()
public:
2024-04-13 08:09:22 -07:00
#pragma region Ability System
UPROPERTY(EditAnywhere, Category="Ability System")
bool bAutoAbilitySystem = true;
UPROPERTY(EditAnywhere, Category="Ability System")
TObjectPtr<UAbilitySystemComponent> AbilitySystem;
UPROPERTY(EditAnywhere, Category="Ability System")
TObjectPtr<UAttributeSet> Attributes;
#pragma endregion Ability System
2024-04-13 07:19:45 -07:00
AGasaPlayerState();
2024-04-13 08:09:22 -07:00
#pragma region IAbilitySystem
FORCEINLINE UAttributeSet* GetAttributes() { return Attributes; }
FORCEINLINE UAbilitySystemComponent* GetAbilitySystemComponent() const override { return AbilitySystem; }
#pragma endregion IAbilitySystem
2024-04-13 08:56:19 -07:00
2024-04-16 14:18:06 -07:00
// #pragma region
//
// #pragma endregion
2024-04-13 07:19:45 -07:00
};