31 lines
792 B
C
31 lines
792 B
C
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|||
|
|
|||
|
#pragma once
|
|||
|
|
|||
|
#include "CoreMinimal.h"
|
|||
|
#include "Components/ActorComponent.h"
|
|||
|
#include "Quest.h"
|
|||
|
#include "QuestContainer.generated.h"
|
|||
|
|
|||
|
|
|||
|
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
|
|||
|
class THE_TWILIGHT_ABYSS_API UQuestContainer : public UActorComponent
|
|||
|
{
|
|||
|
GENERATED_BODY()
|
|||
|
|
|||
|
public:
|
|||
|
// Sets default values for this component's properties
|
|||
|
UQuestContainer();
|
|||
|
|
|||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, NoClear, Instanced)
|
|||
|
TArray<UQuest*> Quests;
|
|||
|
|
|||
|
protected:
|
|||
|
// Called when the game starts
|
|||
|
virtual void BeginPlay() override;
|
|||
|
|
|||
|
public:
|
|||
|
// Called every frame
|
|||
|
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
|||
|
};
|