mirror of
https://github.com/FortniteModdingHub/FNGameProj.git
synced 2026-09-03 12:33:39 +00:00
65 lines
2.1 KiB
C++
65 lines
2.1 KiB
C++
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "Blueprint/UserWidget.h"
|
|
#include "EFortHitPointModificationReason.h"
|
|
#include "EHealthBarType.h"
|
|
#include "AthenaPlayerHitPointBarBase.generated.h"
|
|
|
|
class UAthenaPlayerViewModel;
|
|
|
|
UCLASS(Blueprintable, EditInlineNew)
|
|
class UAthenaPlayerHitPointBarBase : public UUserWidget {
|
|
GENERATED_BODY()
|
|
public:
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
|
|
UAthenaPlayerViewModel* PlayerVM;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
EHealthBarType BarType;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
float ValueCurrent;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
float BeginDeltaInterpDelayMin;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
float BeginDeltaInterpDelayMax;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
float ValueLast;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
float ValueMax;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
float LastToCurrentUpdateRate;
|
|
|
|
public:
|
|
UAthenaPlayerHitPointBarBase();
|
|
UFUNCTION(BlueprintCallable)
|
|
void SetDataSource(UAthenaPlayerViewModel* PlayerViewModel);
|
|
|
|
protected:
|
|
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
|
void OnValueChangedWithReason(float Value, EFortHitPointModificationReason Reason);
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
|
void OnMaxValueChanged(float Value);
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
|
void OnDeltaChanged();
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
|
void OnDBNOStateChanged(bool IsDBNO);
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintPure)
|
|
float GetLastValuePercentage() const;
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintPure)
|
|
float GetCurrentValuePercentage() const;
|
|
|
|
};
|
|
|