Interface IQuestStages
- Namespace
- SkyrimForge
- Assembly
- SkyrimForge.dll
The stages of an IRuntimeQuest.
public interface IQuestStages
Remarks
Call members on the game's thread with a game loaded.
Properties
Current
The stage set last in the loaded game. Null means no stage is set.
QuestStage? Current { get; }
Property Value
Remarks
A stage a save records that the quest does not declare is skipped, and the declared stage set before it is returned.
Methods
IsDone(QuestStage)
Determines whether stage is set in the loaded game.
bool IsDone(QuestStage stage)
Parameters
stageQuestStage
Returns
Exceptions
- ArgumentNullException
stageisnull.- ArgumentException
The quest does not declare
stage.
SetAsync(QuestStage)
Sets stage. Setting a stage that is already set does nothing.
Task<bool> SetAsync(QuestStage stage)
Parameters
stageQuestStage
Returns
- Task<bool>
A task whose result is whether this call set the stage. The stage is applied before this returns, and the task completes once OnSet does. An exception a computed log entry throws faults the task and leaves the stage unset.
Exceptions
- ArgumentNullException
stageisnull.- ArgumentException
The quest does not declare
stage.- InvalidOperationException
The stage completes or fails the quest while the quest has displayed no objective and the stage displays none, or the stage displays an objective with no text declared or set. Nothing is changed.