Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
PlayerAttributeSet.h
이 파일의 문서화 페이지로 가기
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
6#include "PlayerAttributeSet.generated.h"
7
8// 경험치가 요구치를 넘겼을 때. 초과분은 그대로 남겨두고 레벨 처리는 PlayerState 가 맡는다.
9DECLARE_MULTICAST_DELEGATE(FOnExperienceThresholdReached);
10
11UCLASS()
12class CK_UE_API UPlayerAttributeSet : public UBaseAttributeSet
13{
14 GENERATED_BODY()
15public:
17
18 void InitPlayerStats(float InCritical, float InCriticalDmg);
19
20 // 레벨/경험치 초기값을 한 번에 세팅한다.
21 void InitExperienceStats(float InLevel, float InExperience, float InMaxExperience);
22
23 virtual void PostGameplayEffectExecute(const FGameplayEffectModCallbackData& Data) override;
24
30
31public:
32 FOnExperienceThresholdReached OnExperienceThresholdReached;
33
34protected:
35 UPROPERTY(BlueprintReadOnly, Category = "Stat", meta = (AllowPrivateAccess = true))
36 FGameplayAttributeData Critical;
37
38 UPROPERTY(BlueprintReadOnly, Category = "Stat", meta = (AllowPrivateAccess = true))
39 FGameplayAttributeData Critical_Dmg;
40
41 // 플레이어 레벨. 정수 개념이지만 GE 로 보정할 수 있도록 어트리뷰트로 둔다.
42 UPROPERTY(BlueprintReadOnly, Category = "Stat", meta = (AllowPrivateAccess = true))
43 FGameplayAttributeData Level;
44
45 // 현재 누적 방송 경험치.
46 UPROPERTY(BlueprintReadOnly, Category = "Stat", meta = (AllowPrivateAccess = true))
47 FGameplayAttributeData Experience;
48
49 // 다음 레벨까지 필요한 경험치. 0 이하면 최종 레벨로 본다.
50 // 어트리뷰트라 "요구 경험치 감소" 같은 버프를 GE 로 걸 수 있다.
51 UPROPERTY(BlueprintReadOnly, Category = "Stat", meta = (AllowPrivateAccess = true))
52 FGameplayAttributeData MaxExperience;
53};
DECLARE_MULTICAST_DELEGATE(FOnExperienceThresholdReached)
Definition BaseAttributeSet.h:58
Definition PlayerAttributeSet.h:13
ATTRIBUTE_ACCESSORS(UPlayerAttributeSet, Critical)
ATTRIBUTE_ACCESSORS(UPlayerAttributeSet, Experience)
ATTRIBUTE_ACCESSORS(UPlayerAttributeSet, Critical_Dmg)
ATTRIBUTE_ACCESSORS(UPlayerAttributeSet, MaxExperience)
FOnExperienceThresholdReached OnExperienceThresholdReached
Definition PlayerAttributeSet.h:32
ATTRIBUTE_ACCESSORS(UPlayerAttributeSet, Level)