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); };