Class TextStateFileLoader
Load a state from a serialized JSON string
Implements
Namespace: IVLab.ABREngine
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public class TextStateFileLoader : IABRStateLoader
Constructors
| Improve this Doc View SourceTextStateFileLoader()
Load a state from a serialized JSON string
Declaration
public TextStateFileLoader()
Methods
| Improve this Doc View SourceGetState(string)
Load a state based on some text (perhaps a JSON string, a file path, or URL)
Declaration
public JObject GetState(string jsonText)
Parameters
Type | Name | Description |
---|---|---|
string | jsonText |
Returns
Type | Description |
---|---|
JObject |
SaveState(string, string)
Save a serialized JSON state with a particular name
Declaration
public void SaveState(string name, string serializedState)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
string | serializedState |