Class ABRStateParser
The ABRStateParser takes a (text) ABR state from JSON and loads its
components into Unity, or takes the current state of objects in the
Unity scene and translates it back into text.
Inheritance
ABRStateParser
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public class ABRStateParser
Methods
|
Improve this Doc
View Source
LoadState<T>(string, JObject)
The LoadState
method, the workhorse of this
class, has side effects that range from populating new GameObjects for
data impressions, to loading new data, to loading in VisAssets. By the
end of LoadState
, the visualization should be complete in the
Unity scene.
Declaration
public JObject LoadState<T>(string stateText, JObject previousState) where T : IABRStateLoader, new()
Parameters
Type |
Name |
Description |
string |
stateText |
|
JObject |
previousState |
|
Returns
Type Parameters
|
Improve this Doc
View Source
SerializeState(JObject)
The SerializeState method takes the current state of the ABR unity
scene and attempts to put it back into JSON form. There are several
fields that aren't stored anywhere in the ABREngine, and must thus
rely on the JSON version of the previous state.
Declaration
public string SerializeState(JObject previousState)
Parameters
Type |
Name |
Description |
JObject |
previousState |
|
Returns