Oakfolks Gold_1.14
Oakfolks coop game
Loading...
Searching...
No Matches
UQuest_Subsystem Class Reference

Quest management subsystem for tracking player progress. More...

#include <UI_Subsystem.h>

Inheritance diagram for UQuest_Subsystem:
Collaboration diagram for UQuest_Subsystem:

Public Member Functions

virtual void Initialize (FSubsystemCollectionBase &Collection) override
 Initializes the quest subsystem.
 
virtual void Deinitialize () override
 Cleans up the quest subsystem.
 
void LoadQuestLine (UQuestData *NewQuestLine)
 Loads a new quest line and starts the first quest.
 
void CompleteQuest (FString Tag)
 Progress tracking.
 
void ProgressQuest (FString Tag)
 Increments progress for the current quest.
 
FString GetCurrentQuestDesc ()
 Gets the description of the current active quest.
 
FString GetCurrentQuestTag ()
 Gets the tag identifier of the current active quest.
 
int GetCurrentQuestAmount ()
 Gets the target amount required to complete the current quest.
 
int GetCurrentQuestProgress ()
 Gets the current progress towards quest completion.
 

Public Attributes

FOnQuestCompleted OnQuestCompleted
 
FOnQuestLineCompleted OnQuestLineCompleted
 

Detailed Description

Quest management subsystem for tracking player progress.

Handles quest line loading, progress tracking, completion validation, and event broadcasting

Member Function Documentation

◆ CompleteQuest()

void UQuest_Subsystem::CompleteQuest ( FString Tag)

Progress tracking.

Marks a quest as completed and advances to the next quest.

Validates quest tag, finds next quest in chain, or completes the quest line

Parameters
TagThe tag of the quest to complete
Here is the caller graph for this function:

◆ Deinitialize()

void UQuest_Subsystem::Deinitialize ( )
overridevirtual

Cleans up the quest subsystem.

Performs cleanup when the subsystem is destroyed

◆ GetCurrentQuestAmount()

int UQuest_Subsystem::GetCurrentQuestAmount ( )

Gets the target amount required to complete the current quest.

Returns how many actions/items are needed to complete the quest

Returns
Target amount for quest completion

◆ GetCurrentQuestDesc()

FString UQuest_Subsystem::GetCurrentQuestDesc ( )

Gets the description of the current active quest.

QUEST INFORMATION //////// Current quest data

Returns the descriptive text for the currently active quest

Returns
Description string of the current quest

◆ GetCurrentQuestProgress()

int UQuest_Subsystem::GetCurrentQuestProgress ( )

Gets the current progress towards quest completion.

Returns how many actions/items have been completed so far

Returns
Current progress count

◆ GetCurrentQuestTag()

FString UQuest_Subsystem::GetCurrentQuestTag ( )

Gets the tag identifier of the current active quest.

Returns the unique tag for the currently active quest

Returns
Tag string of the current quest

◆ Initialize()

void UQuest_Subsystem::Initialize ( FSubsystemCollectionBase & Collection)
overridevirtual

Initializes the quest subsystem.

Sets up the initial state for quest tracking and management

Parameters
CollectionThe subsystem collection for dependency management

◆ LoadQuestLine()

void UQuest_Subsystem::LoadQuestLine ( UQuestData * NewQuestLine)

Loads a new quest line and starts the first quest.

QUEST MANAGEMENT //////// Quest line control

Finds and activates the first quest in the chain (one with empty PreviousQuestTag)

Parameters
NewQuestLineThe quest data asset containing the quest line to load

◆ ProgressQuest()

void UQuest_Subsystem::ProgressQuest ( FString Tag)

Increments progress for the current quest.

Advances quest progress and auto-completes when target amount is reached

Parameters
TagThe tag of the quest to progress
Here is the call graph for this function:

Member Data Documentation

◆ OnQuestCompleted

FOnQuestCompleted UQuest_Subsystem::OnQuestCompleted

DELEGATES //////// Event broadcasting


The documentation for this class was generated from the following files: