diff --git a/Source/the_twilight_abyss/InteractableEnvironment/InteractableEnvironmentObject.cpp b/Source/the_twilight_abyss/InteractableEnvironment/InteractableEnvironmentObject.cpp new file mode 100644 index 0000000..997ed47 --- /dev/null +++ b/Source/the_twilight_abyss/InteractableEnvironment/InteractableEnvironmentObject.cpp @@ -0,0 +1,31 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "InteractableEnvironmentObject.h" + +// Sets default values for this component's properties +UInteractableEnvironmentObject::UInteractableEnvironmentObject() +{ + PrimaryComponentTick.bCanEverTick = true; + + // ... +} + +// Called when the game starts +void UInteractableEnvironmentObject::BeginPlay() +{ + Super::BeginPlay(); + + // ... + +} + +// Called every frame +void UInteractableEnvironmentObject::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) +{ + Super::TickComponent(DeltaTime, TickType, ThisTickFunction); + + +} + + diff --git a/Source/the_twilight_abyss/InteractableEnvironment/InteractableEnvironmentObject.h b/Source/the_twilight_abyss/InteractableEnvironment/InteractableEnvironmentObject.h new file mode 100644 index 0000000..0d4f20d --- /dev/null +++ b/Source/the_twilight_abyss/InteractableEnvironment/InteractableEnvironmentObject.h @@ -0,0 +1,32 @@ +// 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(EditDefaults) + bool bInteractable = false; + + UFUNCTION(Blueprintcallable) + virtual +};