Class ActionTemplate
Base class template for all quest actions and conditions used by tasks.
Handles some of the boilerplate of IQuestAction.
This class can be used to test and factory new action interfaces from itself.
Actions belong to a task and perform a specific function when task is active and conditions are met.
An action will persist until task terminates.
Think of actions as objects with a lifetime rather than a simple unit of one-shot execution.
For example, the "vengeance" sound played in nighttime Daggerfall is an action that persists until Lysandus is put to rest.
Currently still unclear on when actions get reset (e.g. when does "play sound 10 times" counter get reset?).
Inheritance
ActionTemplate
Assembly: Assembly-CSharp.dll
Syntax
public abstract class ActionTemplate : QuestResource, IDisposable, IQuestAction
Constructors
|
Improve this Doc
View Source
ActionTemplate(Quest)
Declaration
public ActionTemplate(Quest parentQuest)
Parameters
Type |
Name |
Description |
Quest |
parentQuest |
|
Fields
|
Improve this Doc
View Source
allowRearm
Declaration
protected bool allowRearm
Field Value
Properties
|
Improve this Doc
View Source
DebugSource
Declaration
public string DebugSource { get; set; }
Property Value
|
Improve this Doc
View Source
IsAlwaysOnTriggerCondition
Declaration
public bool IsAlwaysOnTriggerCondition { get; set; }
Property Value
|
Improve this Doc
View Source
IsComplete
Declaration
public bool IsComplete { get; set; }
Property Value
|
Improve this Doc
View Source
IsTriggerCondition
Declaration
public bool IsTriggerCondition { get; set; }
Property Value
|
Improve this Doc
View Source
Pattern
Declaration
public abstract string Pattern { get; }
Property Value
Methods
|
Improve this Doc
View Source
CheckTrigger(Task)
Declaration
public virtual bool CheckTrigger(Task caller)
Parameters
Type |
Name |
Description |
Task |
caller |
|
Returns
|
Improve this Doc
View Source
CreateNew(String, Quest)
Declaration
public virtual IQuestAction CreateNew(string source, Quest parentQuest)
Parameters
Returns
|
Improve this Doc
View Source
Dispose()
Declaration
public override void Dispose()
Overrides
|
Improve this Doc
View Source
GetActionSaveData()
Get full action save data including action specific data.
Declaration
public ActionTemplate.ActionSaveData_v1 GetActionSaveData()
Returns
|
Improve this Doc
View Source
InitialiseOnSet()
Declaration
public virtual void InitialiseOnSet()
|
Improve this Doc
View Source
RearmAction()
Declaration
public virtual void RearmAction()
|
Improve this Doc
View Source
RestoreActionSaveData(ActionTemplate.ActionSaveData_v1)
Restore full action save data including action specific data.
Declaration
public void RestoreActionSaveData(ActionTemplate.ActionSaveData_v1 data)
Parameters
|
Improve this Doc
View Source
SetComplete()
Declaration
public virtual void SetComplete()
|
Improve this Doc
View Source
Test(String)
Declaration
public virtual Match Test(string source)
Parameters
Type |
Name |
Description |
String |
source |
|
Returns
|
Improve this Doc
View Source
Update(Task)
Declaration
public virtual void Update(Task caller)
Parameters
Type |
Name |
Description |
Task |
caller |
|
Implements