LEAP Documentation 40220
Documentation for the LEAP project
AfflictionInstanceHealProjector.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2018. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "AfflictionInstanceHealProjector.generated.h"
8
10
11UCLASS()
13{
14 GENERATED_BODY()
15
16public:
17 virtual bool Initialize(UAfflictionComponent* OwningComponent, AActor* AfflictionInstigator = NULL);
18
19protected:
20 virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
21
22protected:
23 /* The amount of accumulated replenished resources before triggering the notify on the instigator*/
24 UPROPERTY(EditDefaultsOnly, Category="Affliction|Heal Projector")
25 float HealAmountNotifyThreshold = 2.f;
26
27 virtual void End(bool bIgnoreApplyModifier = false) override;
28
29 UFUNCTION()
30 void OnOwningCharacterHealed(const float Amount, const float Health, const bool bFromPassiveRegen);
31 UFUNCTION()
32 void OnOwningCharacterShieldsRepaired(const float Amount, const float Health, const bool bFromPassiveRegen);
33
34protected:
35 UPROPERTY(EditDefaultsOnly, Category = "DamageType")
36 TSubclassOf<UProjectXDamageType> HealingDamageType = NULL;
37
38private:
39 float AccumulatedResourceReplenished = 0.f;
40 void OnResourceReplenished(const float Amount);
41};
Definition: AfflictionInstanceCombinedRegen.h:11
Definition: AfflictionInstanceHealProjector.h:13
Definition: ProjectXDamageType.h:62