A blueprint class with 2 graphs.
More...
#include "/PixoCore/Blueprints/Story/BP_StoryManager"
|
bool | BlockStory |
| UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
FStoryStep | CurrentStep |
| UPROPERTY(BlueprintReadWrite, Replicated)
|
|
FStoryStep | CurrentSubStep |
| UPROPERTY(BlueprintReadWrite, Replicated)
|
|
USceneComponent * | DefaultSceneRoot |
| Default Scene Root.
|
|
FOnEndOfStory | OnEndOfStory |
| UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
|
|
FOnNewStep | OnNewStep |
| UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
|
|
FOnNewSubStep | OnNewSubStep |
| UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
|
|
FOnRecordStepScore | OnRecordStepScore |
| UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
|
|
FOnStepCompleted | OnStepCompleted |
| UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
|
|
FOnStepSkipped | OnStepSkipped |
| UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
|
|
FOnStoryLoaded | OnStoryLoaded |
| UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
|
|
TArray< FPassedExperiences > | PassedExperiencesArray |
| UPROPERTY(BlueprintReadWrite)
|
|
FStoryStep | PreviousStep |
| UPROPERTY(BlueprintReadWrite, Replicated)
|
|
TArray< FStepData > | StepData |
| UPROPERTY(BlueprintReadWrite, Replicated)
|
|
int | StepIndex |
| UPROPERTY(BlueprintReadWrite, Replicated)
|
|
TArray< UStoryData * > | StoryDataArray |
| UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
bool | StoryFinished |
| UPROPERTY(BlueprintReadOnly)
|
|
int | StoryIndex = -1 |
| UPROPERTY(BlueprintReadWrite, Replicated)
|
|
int | SubStepIndex |
| UPROPERTY(BlueprintReadWrite, Replicated)
|
|
A blueprint class with 2 graphs.
UDF Path: /PixoCore /Blueprints /Story /BP_StoryManager
Config: Config/DefaultEngine.ini
Definition at line 11 of file UBP_StoryManager_C.h.
◆ THandler
◆ THandlerKey
◆ THandlers
◆ AddStoryComponent()
◆ CompleteSubStep()
void UStoryManager::CompleteSubStep |
( |
FStoryStep | completedStep | ) |
|
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable)
Call this functions when all sub-steps are activated in the step and could be completed in different order.
Definition at line 136 of file StoryManager.cpp.
◆ DECLARE_EVENT_HANDLER()
◆ EventGraph()
void UBP_StoryManager_C::EventGraph |
( |
| ) |
|
|
privateBlueprint |
◆ GENERATED_BODY()
UStoryManager::GENERATED_BODY |
( |
| ) |
|
|
privateinherited |
◆ GetLifetimeReplicatedProps()
void UStoryManager::GetLifetimeReplicatedProps |
( |
TArray< FLifetimeProperty > & | OutLifetimeProps | ) |
const |
|
overrideprotectedvirtualinherited |
◆ GetNextStoryIndex()
static int UStoryManager::GetNextStoryIndex |
( |
| ) |
|
|
inlinestaticinheritedBlueprintCallable |
◆ GetPrivateOwner()
◆ GetStoryParameters()
static TArray< FText > UStoryManager::GetStoryParameters |
( |
| ) |
|
|
inlinestaticinheritedBlueprintCallable |
◆ GoToNextStep()
bool UStoryManager::GoToNextStep |
( |
| ) |
|
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable)
Returns false if current step is last.
Definition at line 72 of file StoryManager.cpp.
◆ GoToNextSubStep()
bool UStoryManager::GoToNextSubStep |
( |
| ) |
|
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable)
Returns false if current step is last.
Definition at line 110 of file StoryManager.cpp.
◆ HandleEvent()
void UBaseManager::HandleEvent |
( |
UBaseEvent * | Event | ) |
|
|
inherited |
◆ HandleEvent_Impl()
void UBaseManager::HandleEvent_Impl |
( |
class UBaseEvent * | Event | ) |
|
|
protectedinherited |
◆ InitNewStory()
bool UStoryManager::InitNewStory |
( |
int | newStoryIndex | ) |
|
|
inheritedBlueprintCallable |
Choose one story from StoryDataArray.
- Parameters
-
newStoryIndex | Story to load. |
- Returns
- true if init was successful.
UFUNCTION(BlueprintCallable)
Definition at line 27 of file StoryManager.cpp.
◆ IsAllSubStepsCompleted()
bool UStoryManager::IsAllSubStepsCompleted |
( |
| ) |
|
|
protectedinherited |
◆ JumpToStepByIndex()
bool UStoryManager::JumpToStepByIndex |
( |
int | index | ) |
|
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable)
Returns false if jump failed.
Definition at line 157 of file StoryManager.cpp.
◆ JumpToStepByName()
bool UStoryManager::JumpToStepByName |
( |
FText | stepId | ) |
|
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable)
Returns false if jump failed.
Definition at line 208 of file StoryManager.cpp.
◆ RecordStoryStepData()
void UStoryManager::RecordStoryStepData |
( |
| ) |
|
|
protectedinherited |
Records the data for a story step. It checks if the story is already present in the PassedExperiencesArray and updates the step data if it exists. Otherwise, it creates a new entry in the array with the step data and the story index.
UFUNCTION()
Definition at line 325 of file StoryManager.cpp.
◆ SendEvent()
template<typename TEventType , typename... TInitializeArgs>
void UBaseManager::SendEvent |
( |
TInitializeArgs... | Arguments | ) |
|
|
inlineinherited |
◆ SetPrivateOwner()
◆ SetupNextStory()
void UStoryManager::SetupNextStory |
( |
int | newNextStoryIndex, |
|
|
TArray< FText > | newStoryParameters ) |
|
staticinheritedBlueprintCallable |
◆ StepCompleted()
void UStoryManager::StepCompleted |
( |
FText | stepToUpdate, |
|
|
bool | goToNext = true ) |
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable)
Called when step is completed. If stepToJump is empty, you will go to next step, else you will try to jump to step, which you typed in.
Definition at line 272 of file StoryManager.cpp.
◆ UserConstructionScript()
void UBP_StoryManager_C::UserConstructionScript |
( |
| ) |
|
|
privateBlueprint |
◆ BlockStory
bool UStoryManager::BlockStory |
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 183 of file StoryManager.h.
◆ CurrentStep
|
inheritedReplicatedBlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Replicated)
Definition at line 145 of file StoryManager.h.
◆ CurrentSubStep
|
inheritedReplicatedBlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Replicated)
Definition at line 151 of file StoryManager.h.
◆ DefaultSceneRoot
◆ Handlers
◆ NextStoryIndex
int UStoryManager::NextStoryIndex = 0 |
|
staticprotectedinherited |
Keeps track of which story should be loaded next by index, saved between levels.
Definition at line 315 of file StoryManager.h.
◆ OnEndOfStory
FOnEndOfStory UStoryManager::OnEndOfStory |
|
inheritedBlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
Delegate for the event when the story ends.
Definition at line 286 of file StoryManager.h.
◆ OnNewStep
FOnNewStep UStoryManager::OnNewStep |
|
inheritedBlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
Delegate for the event when a new step is reached.
Definition at line 261 of file StoryManager.h.
◆ OnNewSubStep
FOnNewSubStep UStoryManager::OnNewSubStep |
|
inheritedBlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
Delegate for the event when a new sub-step is reached.
Definition at line 266 of file StoryManager.h.
◆ OnRecordStepScore
FOnRecordStepScore UStoryManager::OnRecordStepScore |
|
inheritedBlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
Delegate for the event when a step score is recorded.
Definition at line 276 of file StoryManager.h.
◆ OnStepCompleted
FOnStepCompleted UStoryManager::OnStepCompleted |
|
inheritedBlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
Delegate for the event when a step is completed.
Definition at line 271 of file StoryManager.h.
◆ OnStepSkipped
FOnStepSkipped UStoryManager::OnStepSkipped |
|
inheritedBlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
Delegate for the event when a step is skipped.
Definition at line 291 of file StoryManager.h.
◆ OnStoryLoaded
FOnStoryLoaded UStoryManager::OnStoryLoaded |
|
inheritedBlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
Delegate for the event when a story is loaded.
Definition at line 281 of file StoryManager.h.
◆ PassedExperiencesArray
|
inheritedBlueprintReadWrite |
◆ PreviousStep
|
inheritedReplicatedBlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Replicated)
Definition at line 169 of file StoryManager.h.
◆ PrivateOwner
◆ StepData
|
inheritedReplicatedBlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Replicated)
Definition at line 138 of file StoryManager.h.
◆ StepIndex
int UStoryManager::StepIndex |
|
inheritedReplicatedBlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Replicated)
Definition at line 157 of file StoryManager.h.
◆ StoryComponents
◆ StoryData
|
protectedinheritedReplicatedBlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Replicated)
Current story
Definition at line 313 of file StoryManager.h.
◆ StoryDataArray
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 126 of file StoryManager.h.
◆ StoryFinished
bool UStoryManager::StoryFinished |
|
inheritedBlueprintReadOnly |
◆ StoryIndex
int UStoryManager::StoryIndex = -1 |
|
inheritedReplicatedBlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Replicated)
Keeps track of which story index is loaded
Definition at line 176 of file StoryManager.h.
◆ StoryParameters
TArray< FText > UStoryManager::StoryParameters |
|
staticprotectedinherited |
◆ SubStepIndex
int UStoryManager::SubStepIndex |
|
inheritedReplicatedBlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Replicated)
Definition at line 163 of file StoryManager.h.
The documentation for this class was generated from the following files: