67 lines
2.2 KiB
C++
Executable file
67 lines
2.2 KiB
C++
Executable file
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "Components/ActorComponent.h"
|
|
#include "DelegateEventDelegate.h"
|
|
#include "ObjectivesManager.generated.h"
|
|
|
|
class UObjective;
|
|
|
|
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
|
|
class UObjectivesManager : public UActorComponent {
|
|
GENERATED_BODY()
|
|
public:
|
|
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
FDelegateEvent OnObjectivesCompleted;
|
|
|
|
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
FDelegateEvent OnObjectivesChanged;
|
|
|
|
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
FDelegateEvent OnAllRequiredReturnObjectivesCompleted;
|
|
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, Transient, meta=(AllowPrivateAccess=true))
|
|
UObjective* Objective;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, Transient, meta=(AllowPrivateAccess=true))
|
|
TArray<UObjective*> SecondaryObjectives;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
|
|
bool ObjectivesInitialized;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
|
|
bool ObjectivesStarted;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
|
|
bool bCheatObjectivesCompleted;
|
|
|
|
public:
|
|
UObjectivesManager();
|
|
protected:
|
|
UFUNCTION(BlueprintCallable)
|
|
void OnObjectiveChanged(UObjective* obj);
|
|
|
|
public:
|
|
UFUNCTION(BlueprintCallable, BlueprintPure)
|
|
bool HasRequiredSecondaryObjective() const;
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintPure)
|
|
UObjective* GetSecondaryObjective() const;
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintPure)
|
|
UObjective* GetPrimaryObjective() const;
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
void ExitPodDescending();
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
void ExitPodArrived();
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
void DropPodExited();
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintPure)
|
|
bool AreRequiredSecondariesComplete() const;
|
|
|
|
};
|
|
|