Class PathStateFileLoader
Save/Load a state to a JSON file somewhere on disk
Implements
Namespace: IVLab.ABREngine
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public class PathStateFileLoader : IABRStateLoader
Constructors
| Improve this Doc View SourcePathStateFileLoader()
Save/Load a state to a JSON file somewhere on disk
Declaration
public PathStateFileLoader()
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 stateFilePath)
Parameters
Type | Name | Description |
---|---|---|
string | stateFilePath |
Returns
Type | Description |
---|---|
JObject |
SaveState(string, string)
Save a serialized JSON state with a particular name
Declaration
public void SaveState(string outPath, string serializedState)
Parameters
Type | Name | Description |
---|---|---|
string | outPath | |
string | serializedState |