#include <QuestData.h>
◆ GetActiveObjectiveIDs()
| TArray< FString > FQuestInfoStatus::GetActiveObjectiveIDs |
( |
| ) |
const |
|
inline |
727 {
728 TArray<FString> ActiveObjectiveIDs;
730 {
731 if(Objective != nullptr)
732 {
733 if(Objective->GetIsActive())
734 {
735 ActiveObjectiveIDs.Add(Objective->ObjectiveID);
736 }
737 }
738 }
739 return ActiveObjectiveIDs;
740 }
TArray< const FQuestObjectives * > ObjectiveReferences
Definition QuestData.h:776
◆ GetActiveObjectiveIDsWithMarkers()
| TArray< FString > FQuestInfoStatus::GetActiveObjectiveIDsWithMarkers |
( |
| ) |
const |
|
inline |
758 {
759 TArray<FString> ActiveObjectiveIDs;
761 {
762 if(Objective != nullptr)
763 {
764 if(Objective->GetIsActive())
765 {
766 if(Objective->bHasWorldMarker)
767 {
768 ActiveObjectiveIDs.Add(Objective->ObjectiveID);
769 }
770 }
771 }
772 }
773 return ActiveObjectiveIDs;
774 }
◆ GetAllObjectiveIDs()
| TArray< FString > FQuestInfoStatus::GetAllObjectiveIDs |
( |
| ) |
const |
|
inline |
609 {
610 TArray<FString> AllObjectiveIDs;
612 {
613 if(Objective == nullptr){continue;}
614 AllObjectiveIDs.AddUnique(Objective->ObjectiveID);
615 }
616 return AllObjectiveIDs;
617 }
◆ GetCanBeCompleted()
| bool FQuestInfoStatus::GetCanBeCompleted |
( |
const UObject * | Owner, |
|
|
EQuestStatus & | QuestOutcome ) |
|
inline |
677 {
678
681 if(QuestOutcome != EQuestStatus::Active){return false;}
682
684 {
685
686 if(QuestObjective->bIsOptional){continue;}
687 if(QuestObjective->GetIsFailed())
688 {
689 QuestOutcome = EQuestStatus::Failed;
690 return true;
691 }
692 if(QuestObjective->bObjectiveTimed && !QuestObjective->GetDidCompleteInTime())
693 {
694 QuestOutcome = EQuestStatus::Failed;
695 return true;
696 }
697
698 if(QuestObjective->GetIsFinished() == false)
699 {
700 QuestOutcome = EQuestStatus::Active;
701 return false;
702 }
703 }
704
705 QuestOutcome = EQuestStatus::Completed;
706 return true;
707 }
EQuestStatus QuestStatus
Definition QuestData.h:780
float SaveQuestTime(const UObject *Owner)
Definition QuestData.h:649
Definition QuestData.h:361
◆ GetDidCompleteInTime()
| bool FQuestInfoStatus::GetDidCompleteInTime |
( |
const float | TimeToComplete | ) |
const |
|
inline |
667 {
668
670 {
672 }
673 return false;
674 }
float StartTimeInSeconds
Definition QuestData.h:787
float ElapsedTime
Definition QuestData.h:789
◆ GetElapsedTime()
| float FQuestInfoStatus::GetElapsedTime |
( |
| ) |
const |
|
inline |
◆ GetIsActive()
| bool FQuestInfoStatus::GetIsActive |
( |
| ) |
const |
|
inline |
◆ GetNotStartedObjectiveIDs()
| TArray< FString > FQuestInfoStatus::GetNotStartedObjectiveIDs |
( |
| ) |
const |
|
inline |
742 {
743 TArray<FString> NotStartedObjectiveIDs;
745 {
746 if(Objective != nullptr)
747 {
748 if(Objective->GetIsNotYetStarted())
749 {
750 NotStartedObjectiveIDs.Add(Objective->ObjectiveID);
751 }
752 }
753 }
754 return NotStartedObjectiveIDs;
755 }
◆ GetObjectivesNum()
| int32 FQuestInfoStatus::GetObjectivesNum |
( |
| ) |
const |
|
inline |
◆ GetQuestStatus()
◆ GetStartTime()
| float FQuestInfoStatus::GetStartTime |
( |
| ) |
const |
|
inline |
◆ GetTotalProgress()
| int32 FQuestInfoStatus::GetTotalProgress |
( |
| ) |
const |
|
inline |
623 {
624 int32 TotalProgress = 0;
626 {
627 if(Objective == nullptr){continue;}
628 if(!Objective->bIsOptional)
629 {
630 TotalProgress += Objective->GetCurrentProgress();
631 }
632 }
633 return TotalProgress;
634 }
◆ GetTotalRequiredProgress()
| int32 FQuestInfoStatus::GetTotalRequiredProgress |
( |
| ) |
const |
|
inline |
637 {
638 int32 TotalRequired = 0;
640 {
641 if(Objective == nullptr){continue;}
642 if(!Objective->bIsOptional)
643 {
644 TotalRequired += Objective->RequiredProgress;
645 }
646 }
647 return TotalRequired;
648 }
◆ GetUniqueID()
| int32 FQuestInfoStatus::GetUniqueID |
( |
| ) |
const |
|
inline |
717 {
719 }
int32 UniqueID
Definition QuestData.h:782
◆ ResumeFromElapsedTime()
| void FQuestInfoStatus::ResumeFromElapsedTime |
( |
| ) |
|
|
inline |
◆ SaveQuestTime()
| float FQuestInfoStatus::SaveQuestTime |
( |
const UObject * | Owner | ) |
|
|
inline |
650 {
652 {
653 if(
const UWorld* World = GEngine->GetWorldFromContextObject(
Owner, EGetWorldErrorMode::LogAndReturnNull))
654 {
655 const float CurrentTimeInSeconds = World->GetTimeSeconds();
657 }
658 }
660 }
bool GetIsActive() const
Definition QuestData.h:600
◆ SetStatus()
| void FQuestInfoStatus::SetStatus |
( |
const EQuestStatus | NewQuestStatus | ) |
|
|
inline |
◆ SetUniqueID()
| void FQuestInfoStatus::SetUniqueID |
( |
const int32 | ID | ) |
|
|
inline |
◆ StartQuest()
| void FQuestInfoStatus::StartQuest |
( |
const UObject * | Owner | ) |
|
|
inline |
588 {
591 if(
const UWorld* World = GEngine->GetWorldFromContextObject(
Owner, EGetWorldErrorMode::LogAndReturnNull))
592 {
594 }
595 }
void SetStatus(const EQuestStatus NewQuestStatus)
Definition QuestData.h:596
EQuestStatus GetQuestStatus() const
Definition QuestData.h:604
◆ ElapsedTime
| float FQuestInfoStatus::ElapsedTime = -1.0f |
|
protected |
◆ ObjectiveReferences
◆ QuestStatus
| EQuestStatus FQuestInfoStatus::QuestStatus = EQuestStatus::NotStarted |
|
protected |
◆ StartTimeInSeconds
| float FQuestInfoStatus::StartTimeInSeconds = -1.0f |
|
protected |
◆ UniqueID
| int32 FQuestInfoStatus::UniqueID = 0 |
|
protected |
The documentation for this struct was generated from the following file:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/QuestSystem/Source/QuestSystem/Public/Data/QuestData.h