File size: 1,293 Bytes
7fd553e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | // Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Components/ControllerComponent.h"
#include "LyraIndicatorManagerComponent.generated.h"
#define UE_API LYRAGAME_API
class AController;
class UIndicatorDescriptor;
class UObject;
struct FFrame;
/**
* @class ULyraIndicatorManagerComponent
*/
UCLASS(MinimalAPI, BlueprintType, Blueprintable)
class ULyraIndicatorManagerComponent : public UControllerComponent
{
GENERATED_BODY()
public:
UE_API ULyraIndicatorManagerComponent(const FObjectInitializer& ObjectInitializer);
static UE_API ULyraIndicatorManagerComponent* GetComponent(AController* Controller);
UFUNCTION(BlueprintCallable, Category = Indicator)
UE_API void AddIndicator(UIndicatorDescriptor* IndicatorDescriptor);
UFUNCTION(BlueprintCallable, Category = Indicator)
UE_API void RemoveIndicator(UIndicatorDescriptor* IndicatorDescriptor);
DECLARE_EVENT_OneParam(ULyraIndicatorManagerComponent, FIndicatorEvent, UIndicatorDescriptor* Descriptor)
FIndicatorEvent OnIndicatorAdded;
FIndicatorEvent OnIndicatorRemoved;
const TArray<UIndicatorDescriptor*>& GetIndicators() const { return Indicators; }
private:
UPROPERTY()
TArray<TObjectPtr<UIndicatorDescriptor>> Indicators;
};
#undef UE_API
|