Class QuestManager
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
QuestManager
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
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
ClientEvent_OnArtifactRemoved
Declaration
public SafeAction<string> ClientEvent_OnArtifactRemoved
Field Value
ClientEvent_OnQuestAdded
Declaration
public SafeAction<DewQuest> ClientEvent_OnQuestAdded
Field Value
ClientEvent_OnQuestRemoved
Declaration
public SafeAction<DewQuest> ClientEvent_OnQuestRemoved
Field Value
didCollectArtifactThisLoop
Declaration
[NonSerialized]
[SaveVar(SaveVarFlags.Default)]
public bool didCollectArtifactThisLoop
Field Value
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
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
HasQuest<T>()
Declaration
public bool HasQuest<T>() where T : DewQuest
Returns
Type Parameters
OnStartClient()
Declaration
public override void OnStartClient()
Overrides
NetworkedManagerBase<QuestManager>.OnStartClient()
OnStartServer()
Declaration
public override void OnStartServer()
Overrides
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 Parameters
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 Parameters
TryGetQuest(Type, out DewQuest)
Declaration
public bool TryGetQuest(Type type, out DewQuest quest)
Parameters
| Type |
Name |
Description |
| System.Type |
type |
|
| DewQuest |
quest |
|
Returns
TryGetQuest<T>(out T)
Declaration
public bool TryGetQuest<T>(out T quest) where T : DewQuest
Parameters
| Type |
Name |
Description |
| T |
quest |
|
Returns
Type Parameters
Implements
Extension Methods