Show / Hide Table of Contents

Class Clock

A clock is an alarm that that executes a task with the same symbol name. Clock must be started and stopped by quest actions. Clock runs down in game-time (default is 12x real-time). This also means timer is paused when game is paused.

Inheritance
Object
QuestResource
Clock
Inherited Members
QuestResource.BLANK
QuestResource.Symbol
QuestResource.ParentQuest
QuestResource.InfoMessageID
QuestResource.UsedMessageID
QuestResource.RumorsMessageID
QuestResource.HasPlayerClicked
QuestResource.IsHidden
QuestResource.Gender
QuestResource.QuestResourceBehaviour
QuestResource.PostTick(Quest)
QuestResource.ParseMessageTags(String)
QuestResource.Dispose()
QuestResource.SetPlayerClicked()
QuestResource.RearmPlayerClick()
QuestResource.GetMessage(Int32)
QuestResource.GetResourceSaveData()
QuestResource.RestoreResourceSaveData(QuestResource.ResourceSaveData_v1)
Namespace: DaggerfallWorkshop.Game.Questing
Assembly: Assembly-CSharp.dll
Syntax
public class Clock : QuestResource, IDisposable

Constructors

| Improve this Doc View Source

Clock(Quest)

Default constructor.

Declaration
public Clock(Quest parentQuest)
Parameters
Type Name Description
Quest parentQuest

Parent quest.

| Improve this Doc View Source

Clock(Quest, String)

Construct a clock from QBN input.

Declaration
public Clock(Quest parentQuest, string line)
Parameters
Type Name Description
Quest parentQuest

Parent quest.

String line

Clock definition line from QBN.

Properties

| Improve this Doc View Source

Enabled

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

Finished

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

Flag

Declaration
public int Flag { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

MaxRange

Declaration
public int MaxRange { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

MinRange

Declaration
public int MinRange { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

RemainingTimeInSeconds

Declaration
public int RemainingTimeInSeconds { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

StartingTimeInSeconds

Declaration
public int StartingTimeInSeconds { get; }
Property Value
Type Description
Int32

Methods

| Improve this Doc View Source

ExpandMacro(MacroTypes, out String)

Declaration
public override bool ExpandMacro(MacroTypes macro, out string textOut)
Parameters
Type Name Description
MacroTypes macro
String textOut
Returns
Type Description
Boolean
Overrides
QuestResource.ExpandMacro(MacroTypes, out String)
| Improve this Doc View Source

GetDaysString(Int32)

Declaration
public string GetDaysString(int timeInSeconds)
Parameters
Type Name Description
Int32 timeInSeconds
Returns
Type Description
String
| Improve this Doc View Source

GetSaveData()

Declaration
public override object GetSaveData()
Returns
Type Description
Object
Overrides
QuestResource.GetSaveData()
| Improve this Doc View Source

GetTimeString(Int32)

Declaration
public string GetTimeString(int timeInSeconds)
Parameters
Type Name Description
Int32 timeInSeconds
Returns
Type Description
String
| Improve this Doc View Source

RestoreSaveData(Object)

Declaration
public override void RestoreSaveData(object dataIn)
Parameters
Type Name Description
Object dataIn
Overrides
QuestResource.RestoreSaveData(Object)
| Improve this Doc View Source

SetResource(String)

Declaration
public override void SetResource(string line)
Parameters
Type Name Description
String line
Overrides
QuestResource.SetResource(String)
| Improve this Doc View Source

StartTimer()

Starts timer if not already running or complete.

Declaration
public void StartTimer()
| Improve this Doc View Source

StopTimer()

Stops clock from running if not already complete.

Declaration
public void StopTimer()
| Improve this Doc View Source

Tick(Quest)

Declaration
public override void Tick(Quest caller)
Parameters
Type Name Description
Quest caller
Overrides
QuestResource.Tick(Quest)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX