GASATHON/Project/Source/Gasa/UI/HostWidgetController.h

32 lines
1011 B
C
Raw Normal View History

2024-04-21 21:30:29 -07:00
#pragma once
2024-04-21 15:56:57 -07:00
#include "WidgetController.h"
#include "HostWidgetController.generated.h"
2024-04-21 21:30:29 -07:00
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam( FAttributeFloatChangedSig, float, NewValue );
2024-04-21 15:56:57 -07:00
2024-04-21 21:30:29 -07:00
UCLASS( Blueprintable, BlueprintType )
2024-04-21 15:56:57 -07:00
class GASA_API UHostWidgetController : public UWidgetController
{
GENERATED_BODY()
public:
2024-04-21 21:30:29 -07:00
#pragma region Attribute Events
// Attribute Events are generated by GasaGen/GasaGen_HostWidgetController.cpp
UPROPERTY( BlueprintAssignable, Category = "Attributes" )
FAttributeFloatChangedSig Event_OnHealthChanged;
UPROPERTY( BlueprintAssignable, Category = "Attributes" )
FAttributeFloatChangedSig Event_OnMaxHealthChanged;
UPROPERTY( BlueprintAssignable, Category = "Attributes" )
FAttributeFloatChangedSig Event_OnManaChanged;
UPROPERTY( BlueprintAssignable, Category = "Attributes" )
FAttributeFloatChangedSig Event_OnMaxManaChanged;
#pragma endregion Attribute Events
#pragma region WidgetController
void BroadcastInitialValues() override;
#pragma endregion WidgetController
2024-04-21 15:56:57 -07:00
};