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
QuestResourceBehaviour
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
|
Improve this Doc
View Source
IsFoeDead
Flag stating if this Foe is dead .
Declaration
public bool IsFoeDead { get; }
Property Value
|
Improve this Doc
View Source
QuestUID
Declaration
public ulong QuestUID { get; }
Property Value
|
Improve this Doc
View Source
TargetQuest
Gets target Quest object. Can return null.
Declaration
public Quest TargetQuest { get; }
Property Value
|
Improve this Doc
View Source
TargetResource
Gets target QuestResource object. Can return null.
Declaration
public QuestResource TargetResource { get; }
Property Value
|
Improve this Doc
View Source
TargetSymbol
Gets assigned target Symbol.
Declaration
public Symbol TargetSymbol { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddItemQueue(Foe, DaggerfallEntityBehaviour)
Declaration
public void AddItemQueue(Foe foe, DaggerfallEntityBehaviour enemyEntityBehaviour)
Parameters
|
Improve this Doc
View Source
AssignResource(QuestResource)
Assign this behaviour a QuestResource object.
Declaration
public void AssignResource(QuestResource questResource)
Parameters
|
Improve this Doc
View Source
CastSpellQueue(Foe, DaggerfallEntityBehaviour)
Declaration
public void CastSpellQueue(Foe foe, DaggerfallEntityBehaviour enemyEntityBehaviour)
Parameters
|
Improve this Doc
View Source
DoClick()
Called by PlayerActivate when clicking on this GameObject.
Declaration
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
|
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
Events
|
Improve this Doc
View Source
OnGameObjectDestroy
Declaration
public event QuestResourceBehaviour.OnGameObjectDestroyHandler OnGameObjectDestroy
Event Type
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)