23 lines
630 B
C++
Executable file
23 lines
630 B
C++
Executable file
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "Components/SceneComponent.h"
|
|
#include "EDroneActions.h"
|
|
#include "DroneDisplayActionComponent.generated.h"
|
|
|
|
class UTextRenderComponent;
|
|
|
|
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
|
|
class UDroneDisplayActionComponent : public USceneComponent {
|
|
GENERATED_BODY()
|
|
public:
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
|
|
UTextRenderComponent* DisplayText;
|
|
|
|
public:
|
|
UDroneDisplayActionComponent();
|
|
UFUNCTION(BlueprintCallable)
|
|
void SetMode(EDroneActions droneAction);
|
|
|
|
};
|
|
|