Enemy HP Bars done! Time to make classes.
This commit is contained in:
@@ -5,8 +5,10 @@
|
||||
#include "CoreMinimal.h"
|
||||
#include "Character/AuraCharacterBase.h"
|
||||
#include "Interact/EnemyInterface.h"
|
||||
#include "UI/WidgetController/OverlayWidgetController.h"
|
||||
#include "AuraEnemy.generated.h"
|
||||
|
||||
class UWidgetComponent;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -25,13 +27,22 @@ public:
|
||||
|
||||
virtual int32 GetPlayerLevel() override;
|
||||
|
||||
UPROPERTY(BlueprintAssignable)
|
||||
FOnAttributeChangedSignature OnHealthChanged;
|
||||
UPROPERTY(BlueprintAssignable)
|
||||
FOnAttributeChangedSignature OnMaxHealthChanged;
|
||||
|
||||
protected:
|
||||
virtual void BeginPlay() override;
|
||||
virtual void InitAbilityActorInfo() override;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Character Class Defaults")
|
||||
int32 Level = 1;
|
||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Character Class Defaults")
|
||||
FText Name;
|
||||
|
||||
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
|
||||
TObjectPtr<UWidgetComponent> HealthBar;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user