Illusion-UE5/hwanyoung2/Source/hwanyoung2/HYInteractableActor.h
7heIVIaze 75c36782a9 Implemented dialogue system and dialogue UI prototype
Implemented Dialogue System using dialogue Component and Interface, make Dialogue UI Prototype, and change the data type of the characters to be displayed in the UI in source code
2025-05-01 12:23:10 +09:00

45 lines
999 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "HYInteractableActor.generated.h"
/*
* Parent class for all interactable actor objects
*/
UCLASS()
class HWANYOUNG2_API AHYInteractableActor : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AHYInteractableActor();
//this is a Blueprint-only Event; does not have C++ implementation
UFUNCTION(BlueprintNativeEvent)
void Interact(APlayerController* Controller);
virtual void Interact_Implementation(APlayerController* Controller);
UPROPERTY(EditDefaultsOnly)
FText Name;
UPROPERTY(EditDefaultsOnly)
FText Action;
UFUNCTION(BlueprintCallable, Category = "Pickup")
FText GetInteractText() const;
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
};