From 2d11a5c5bcf05663190b657327a3bdf3004c7e33 Mon Sep 17 00:00:00 2001 From: baz Date: Wed, 5 Feb 2025 23:04:28 +0000 Subject: [PATCH] Change access level for IncrementHealth --- Source/vampires/HealthComponent.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/vampires/HealthComponent.h b/Source/vampires/HealthComponent.h index abd0329..fbaf412 100644 --- a/Source/vampires/HealthComponent.h +++ b/Source/vampires/HealthComponent.h @@ -28,6 +28,7 @@ struct FDamageInfo }; DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnDamageDelegate, FDamageInfo, damageInfo); + DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnDeathDelegate, FDamageInfo, damageInfo); UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent)) @@ -59,9 +60,6 @@ public: AController* instigatedBy, AActor* damageCauser); - UFUNCTION() - void IncrementHealth(float value); - UFUNCTION() float GetMaxHealth(); @@ -95,4 +93,7 @@ public: protected: // Called when the game starts virtual void BeginPlay() override; + + UFUNCTION() + void IncrementHealth(float value); };