Class DewQuest
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
DewQuest
Assembly: Dew.Core.dll
Syntax
public abstract class DewQuest : GameEffect, ILogicUpdate, ICleanup, ICustomDestroyRoutine
Fields
ClientQuestEvent_OnQuestUpdated
Declaration
public SafeAction ClientQuestEvent_OnQuestUpdated
Field Value
DefaultStep
Declaration
public const string DefaultStep = "Default"
Field Value
type
Declaration
[BoxGroup("Quest Settings", true, false, 0)]
public QuestType type
Field Value
Properties
currentProgress
Declaration
public string currentProgress { get; set; }
Property Value
failReason
Declaration
public FailReason failReason { get; set; }
Property Value
progressType
Declaration
public QuestProgressType progressType { get; set; }
Property Value
questDetailedDescriptionRaw
Declaration
public string questDetailedDescriptionRaw { get; set; }
Property Value
questShortDescriptionRaw
Declaration
public string questShortDescriptionRaw { get; set; }
Property Value
questTitleRaw
Declaration
public string questTitleRaw { get; set; }
Property Value
state
Declaration
public QuestState state { get; set; }
Property Value
step
Declaration
[SaveVar(SaveVarFlags.ApplyAfterCreation)]
public string step { get; set; }
Property Value
Methods
AddStepGoal_ReachNode(NextGoalSettings)
Declaration
public void AddStepGoal_ReachNode(NextGoalSettings settings)
Parameters
CompleteQuest()
Declaration
public void CompleteQuest()
EndStep(string)
Declaration
public void EndStep(string nextStep = null)
Parameters
| Type |
Name |
Description |
| string |
nextStep |
|
FailQuest(FailReason)
Declaration
public void FailQuest(FailReason reason)
Parameters
GetInitialStep()
Declaration
public virtual string GetInitialStep()
Returns
IsVisibleLocally()
Is this quest visible locally? This is checked everywhere when this quest is added.
Declaration
public virtual bool IsVisibleLocally()
Returns
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroyActor()
Declaration
protected override void OnDestroyActor()
Overrides
OnStepEnded(string)
Called everywhere when a step of this quest has ended.
Declaration
protected virtual void OnStepEnded(string formerStep)
Parameters
| Type |
Name |
Description |
| string |
formerStep |
|
OnStepStarted(bool)
Called everywhere when a new step starts.
Declaration
protected virtual void OnStepStarted(bool isLoadedFromSave)
Parameters
| Type |
Name |
Description |
| bool |
isLoadedFromSave |
|
RpcInvokeQuestUpdated()
Invoke UI update across clients. You usually don't need to call this yourself.
Declaration
public void RpcInvokeQuestUpdated()
SetLocalizedDescription(string)
Provide null for default desc.
Declaration
public void SetLocalizedDescription(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
|
SetLocalizedTitle(string)
Provide null for default title.
Declaration
public void SetLocalizedTitle(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
|
Implements
Extension Methods