Search Results for

    Show / Hide Table of Contents

    Class QuestManager

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    Mirror.NetworkBehaviour
    DewNetworkBehaviour
    NetworkedManagerBase<QuestManager>
    QuestManager
    Implements
    ILogicUpdate
    Inherited Members
    NetworkedManagerBase<QuestManager>.instance
    NetworkedManagerBase<QuestManager>.softInstance
    NetworkedManagerBase<QuestManager>.Awake()
    NetworkedManagerBase<QuestManager>.OnEnable()
    NetworkedManagerBase<QuestManager>.OnStopClient()
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxStopNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNew(GameObject)
    DewNetworkBehaviour.FxPlayNew(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNew(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNew(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlay(GameObject)
    DewNetworkBehaviour.FxPlay(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlay(GameObject, Entity)
    DewNetworkBehaviour.FxPlay(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxStop(GameObject)
    DewNetworkBehaviour.FxApplySpeedMultiplier(GameObject, float)
    DewNetworkBehaviour.FxApplySpeedMultiplierNetworked(GameObject, float)
    DewNetworkBehaviour.InvalidateInstance()
    DewNetworkBehaviour.OnStopServer()
    DewNetworkBehaviour.OnStart()
    DewNetworkBehaviour.OnLateStart()
    DewNetworkBehaviour.OnLateStartServer()
    DewNetworkBehaviour.OnStop()
    DewNetworkBehaviour.OnDestroy()
    DewNetworkBehaviour.LogicUpdate(float)
    DewNetworkBehaviour.FrameUpdate()
    DewNetworkBehaviour.GetComponent<T>(out T)
    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    public class QuestManager : NetworkedManagerBase<QuestManager>, ILogicUpdate

    Fields

    activeQuests

    Declaration
    [NonSerialized]
    public List<DewQuest> activeQuests
    Field Value
    Type Description
    System.Collections.Generic.List<T><DewQuest>

    ClientEvent_OnArtifactAppraised

    Called everywhere when an artifact is appraised.
    Second boolean parameter denotes whether the artifact is new and now unlocked.

    Declaration
    public SafeAction<string, bool> ClientEvent_OnArtifactAppraised
    Field Value
    Type Description
    SafeAction<string, bool>

    ClientEvent_OnArtifactPickedUp

    Called everywhere when an artifact is picked up. Parameters denote: artifact type, player, artifact world position

    Declaration
    public SafeAction<string, DewPlayer, Vector3> ClientEvent_OnArtifactPickedUp
    Field Value
    Type Description
    SafeAction<string, DewPlayer, UnityEngine.Vector3>

    ClientEvent_OnArtifactRemoved

    Declaration
    public SafeAction<string> ClientEvent_OnArtifactRemoved
    Field Value
    Type Description
    SafeAction<string>

    ClientEvent_OnQuestAdded

    Declaration
    public SafeAction<DewQuest> ClientEvent_OnQuestAdded
    Field Value
    Type Description
    SafeAction<DewQuest>

    ClientEvent_OnQuestRemoved

    Declaration
    public SafeAction<DewQuest> ClientEvent_OnQuestRemoved
    Field Value
    Type Description
    SafeAction<DewQuest>

    didCollectArtifactThisLoop

    Available on server.

    Declaration
    [NonSerialized]
    [SaveVar(SaveVarFlags.Default)]
    public bool didCollectArtifactThisLoop
    Field Value
    Type Description
    bool

    undiscoveredArtifacts

    Available on server. List of artifacts that are not discovered by any clients.

    Declaration
    [SaveVar(SaveVarFlags.Default)]
    [NonSerialized]
    public List<string> undiscoveredArtifacts
    Field Value
    Type Description
    System.Collections.Generic.List<T><string>

    Properties

    artifactPool

    Declaration
    public Type[] artifactPool { get; }
    Property Value
    Type Description
    System.Type[]

    currentArtifact

    Declaration
    [SaveVar(SaveVarFlags.Default)]
    public string currentArtifact { get; }
    Property Value
    Type Description
    string

    Methods

    DiscoverArtifactAndShowStory(string)

    Discover an artifact and show the story to everyone.

    Declaration
    public void DiscoverArtifactAndShowStory(string artifact)
    Parameters
    Type Name Description
    string artifact

    HasQuest(Type)

    Declaration
    public bool HasQuest(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    bool

    HasQuest<T>()

    Declaration
    public bool HasQuest<T>() where T : DewQuest
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T

    OnStartClient()

    Declaration
    public override void OnStartClient()
    Overrides
    NetworkedManagerBase<QuestManager>.OnStartClient()

    OnStartServer()

    Declaration
    public override void OnStartServer()
    Overrides
    DewNetworkBehaviour.OnStartServer()

    PickUpArtifact(string, DewPlayer, Vector3)

    Declaration
    public void PickUpArtifact(string artifactName, DewPlayer player, Vector3 worldPos)
    Parameters
    Type Name Description
    string artifactName
    DewPlayer player
    UnityEngine.Vector3 worldPos

    RemoveArtifact()

    Declaration
    public void RemoveArtifact()

    StartQuest<T>(T, Action<T>)

    Declaration
    public T StartQuest<T>(T prefab, Action<T> beforePrepare = null) where T : DewQuest
    Parameters
    Type Name Description
    T prefab
    System.Action<T><T> beforePrepare
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    StartQuest<T>(Action<T>)

    Declaration
    public T StartQuest<T>(Action<T> beforePrepare = null) where T : DewQuest
    Parameters
    Type Name Description
    System.Action<T><T> beforePrepare
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    TryGetQuest(Type, out DewQuest)

    Declaration
    public bool TryGetQuest(Type type, out DewQuest quest)
    Parameters
    Type Name Description
    System.Type type
    DewQuest quest
    Returns
    Type Description
    bool

    TryGetQuest<T>(out T)

    Declaration
    public bool TryGetQuest<T>(out T quest) where T : DewQuest
    Parameters
    Type Name Description
    T quest
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T

    Implements

    ILogicUpdate

    Extension Methods

    DewGUI.SetExpandHeight<T>(T, bool)
    DewGUI.SetExpandHeight<T>(T, float)
    DewGUI.SetExpandWidth<T>(T, bool)
    DewGUI.SetExpandWidth<T>(T, float)
    DewGUI.SetHeight<T>(T, float)
    DewGUI.SetText<T>(T, string)
    DewGUI.SetTextLocalized<T>(T, string)
    DewGUI.SetWidth<T>(T, float)
    In This Article
    Back to top Shape of Dreams API Documentation