Class SequenceState
Inherited Members
Namespace: Xareus.Scenarios
Assembly: Xareus.Scenarios.dll
Syntax
[Serializable]
public class SequenceState
Properties
Tokens
Declaration
public Dictionary<string, IContext> Tokens { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, IContext> |
Methods
AddToken(string, IContext)
Declaration
public void AddToken(string sequenceIdPath, IContext token)
Parameters
Type | Name | Description |
---|---|---|
string | sequenceIdPath | |
IContext | token |
LoadFromFile(string)
Loads a sequence state from an XML file
Declaration
public static SequenceState LoadFromFile(string sequenceStateFile)
Parameters
Type | Name | Description |
---|---|---|
string | sequenceStateFile | The input XML file to load from |
Returns
Type | Description |
---|---|
SequenceState |
SaveToFile(string, SequenceState)
Saves a sequence state to an XML file
Declaration
public static void SaveToFile(string scenarioStateFile, SequenceState sequenceState)
Parameters
Type | Name | Description |
---|---|---|
string | scenarioStateFile | The output XML file to save to |
SequenceState | sequenceState | The sequence state to save |