Documentation for the Unreal C++ Plugin
Loading...
Searching...
No Matches
BaseStoryActor.h
Go to the documentation of this file.
1// Copyright(c) Pixo Group. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "GameFramework/Actor.h"
11#include "BaseStoryActor.generated.h"
12
16UCLASS(Blueprintable)
17class PIXOCORE_API ABaseStoryActor : public AActor, public IPixoVRStoryObject
18{
21public:
23
24 UPROPERTY(BlueprintReadWrite, EditAnywhere)
25 UStoryComponent* Story;
26
27 UPROPERTY(EditAnywhere, BlueprintReadWrite)
28 UHighlightComponent* HighlightComponent;
29
30 UPROPERTY(BlueprintReadWrite)
31 UHintManager* HintManager;
33 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "BaseStoryActor|DynamicStory")
34 bool IsAutoStepDataPopulationActive = false;
35
36 UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "BaseStoryActor|DynamicStory", meta = (EditCondition = "IsAutoStepDataPopulationActive == true", EditConditionHides))
37 TArray<TSubclassOf<ABaseStoryActor>> ChildClassesThatAcquiredPopulatedData;
38
39 bool ActiveStepsAcquiredFromParent = false;
40
45 virtual bool IsObjectActive_Implementation() override;
46
52 UFUNCTION(BlueprintNativeEvent)
53 void StepSkipped(FStoryStep SkippedStep, bool IsForward);
54
59 UFUNCTION(BlueprintNativeEvent)
60 void OnHintActivated(bool Activate);
65 UFUNCTION(BlueprintNativeEvent)
66 void ActivateHighlightOnActiveStep();
67
68protected:
69 virtual void BeginPlay() override;
70
76 UFUNCTION()
77 void NewStepActivated(FStoryStep NewStep, bool IsForward);
83 UFUNCTION()
84 void NewSubStepActivated(FStoryStep NewSubStep);
85};
Base class for story actors.
UStoryComponent * Story
UPROPERTY(BlueprintReadWrite, EditAnywhere)
GENERATED_BODY()
void OnHintActivated(bool Activate)
Event called when a hint is activated.
void ActivateHighlightOnActiveStep()
Event called to activate the highlight on the active step.
UHintManager * HintManager
UPROPERTY(BlueprintReadWrite)
TArray< TSubclassOf< ABaseStoryActor > > ChildClassesThatAcquiredPopulatedData
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "BaseStoryActor|DynamicStory",...
UHighlightComponent * HighlightComponent
UPROPERTY(EditAnywhere, BlueprintReadWrite)
void StepSkipped(FStoryStep SkippedStep, bool IsForward)
Event called when a step is skipped.
Interface for PixoVR story object functionality.
GENERATED_BODY()
Component responsible for managing object highlighting.
Manager that provides functionality for managing hint activation events.
Definition HintManager.h:19
A component responsible for managing the story progression in story actors.
USTRUCT(BlueprintType)