AzureAbyss/Source/the_twilight_abyss/InteractableEnvironment/InteractableEnvironmentObject.h
MH261677 c107c9a490 Updated Merchant
Fixed crash error and merchant dialouge box pops up now, Started working on item stacking
2023-01-12 13:05:43 +00:00

33 lines
842 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "InteractableEnvironmentObject.generated.h"
UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
class THE_TWILIGHT_ABYSS_API UInteractableEnvironmentObject : public UActorComponent
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
UInteractableEnvironmentObject();
protected:
// Called when the game starts
virtual void BeginPlay() override;
public:
// Called every frame
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
UPROPERTY(EditDefaultsOnly)
bool bInteractable = false;
UFUNCTION(Blueprintcallable)
virtual void OnInteract();
};