Show / Hide Table of Contents

Class QuestResourceBehaviour

Helper behaviour to pass information between GameObjects and Quest system. Used to trigger resource events in quest systems like ClickedNpc, InjuredFoe, KilledFoe, etc.

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
QuestResourceBehaviour
Namespace: DaggerfallWorkshop.Game.Questing
Assembly: Assembly-CSharp.dll
Syntax
public class QuestResourceBehaviour : MonoBehaviour

Properties

| Improve this Doc View Source

IsAttackableByAI

Gets or sets flag allowing enemy resource to be attacked by another mobile AI. Never set in core. Must be set by a custom quest action.

Declaration
public bool IsAttackableByAI { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsFoeDead

Flag stating if this Foe is dead .

Declaration
public bool IsFoeDead { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

QuestUID

Gets assigned Quest UID.

Declaration
public ulong QuestUID { get; }
Property Value
Type Description
UInt64
| Improve this Doc View Source

TargetQuest

Gets target Quest object. Can return null.

Declaration
public Quest TargetQuest { get; }
Property Value
Type Description
Quest
| Improve this Doc View Source

TargetResource

Gets target QuestResource object. Can return null.

Declaration
public QuestResource TargetResource { get; }
Property Value
Type Description
QuestResource
| Improve this Doc View Source

TargetSymbol

Gets assigned target Symbol.

Declaration
public Symbol TargetSymbol { get; }
Property Value
Type Description
Symbol

Methods

| Improve this Doc View Source

AddItemQueue(Foe, DaggerfallEntityBehaviour)

Declaration
public void AddItemQueue(Foe foe, DaggerfallEntityBehaviour enemyEntityBehaviour)
Parameters
Type Name Description
Foe foe
DaggerfallEntityBehaviour enemyEntityBehaviour
| Improve this Doc View Source

AssignResource(QuestResource)

Assign this behaviour a QuestResource object.

Declaration
public void AssignResource(QuestResource questResource)
Parameters
Type Name Description
QuestResource questResource
| Improve this Doc View Source

CastSpellQueue(Foe, DaggerfallEntityBehaviour)

Declaration
public void CastSpellQueue(Foe foe, DaggerfallEntityBehaviour enemyEntityBehaviour)
Parameters
Type Name Description
Foe foe
DaggerfallEntityBehaviour enemyEntityBehaviour
| Improve this Doc View Source

DoClick()

Called by PlayerActivate when clicking on this GameObject.

Declaration
public bool DoClick()
Returns
Type Description
Boolean

True if this resource was found in any active quests.

| Improve this Doc View Source

GetSaveData()

Gets save data for serialization.

Declaration
public QuestResourceBehaviour.QuestResourceSaveData_v1 GetSaveData()
Returns
Type Description
QuestResourceBehaviour.QuestResourceSaveData_v1
| Improve this Doc View Source

RaiseOnGameObjectDestroyEvent()

Declaration
protected void RaiseOnGameObjectDestroyEvent()
| Improve this Doc View Source

RestoreSaveData(QuestResourceBehaviour.QuestResourceSaveData_v1)

Restores deserialized save data. Must be called after quest system state restored.

Declaration
public void RestoreSaveData(QuestResourceBehaviour.QuestResourceSaveData_v1 data)
Parameters
Type Name Description
QuestResourceBehaviour.QuestResourceSaveData_v1 data

Events

| Improve this Doc View Source

OnGameObjectDestroy

Declaration
public event QuestResourceBehaviour.OnGameObjectDestroyHandler OnGameObjectDestroy
Event Type
Type Description
QuestResourceBehaviour.OnGameObjectDestroyHandler

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • IsAttackableByAI
    • IsFoeDead
    • QuestUID
    • TargetQuest
    • TargetResource
    • TargetSymbol
  • Methods
    • AddItemQueue(Foe, DaggerfallEntityBehaviour)
    • AssignResource(QuestResource)
    • CastSpellQueue(Foe, DaggerfallEntityBehaviour)
    • DoClick()
    • GetSaveData()
    • RaiseOnGameObjectDestroyEvent()
    • RestoreSaveData(QuestResourceBehaviour.QuestResourceSaveData_v1)
  • Events
    • OnGameObjectDestroy
  • Extension Methods
Back to top Generated by DocFX