class JsonApiStructSource
JsonApiStruct › Managed
All members, including inherited
Constructors 2
void JsonApiStruct()void ~JsonApiStruct()Methods 46
void OnExpand()Event when expand (unpack) process starts
void OnBufferReady()Verification event after successfull JSON packing
void OnSuccess(int errorCode)Event called when pending store operation is finished - callback from JsonApiHandle before handle release
void OnError(int errorCode)Event called when pending store operation is finished - callback from JsonApiHandle before handle release
Called when parsing string value from array
Called when parsing vector value from array
proto native void RegV(string name)Register script variable for auto-feature
proto native void Push(JsonApiStruct obj)Push object to parse (only during parse operation)
proto native void StartObject(string name)Start object at hierarchy - !!! Be cautious and doublecheck results when using this !!!
proto native void EndObject()End object at hierarchy - !!! Be cautious and doublecheck results when using this !!!
proto native void StoreObject(string name, JsonApiStruct obj)Add scripted object to hierarchy (calls through hierarchy)
proto native void StartArray(string name)Start array at hierarchy - !!! Be cautious and doublecheck results when using this !!!
proto native void EndArray()End array at hierarchy - !!! Be cautious and doublecheck results when using this !!!
proto native void ItemObject(JsonApiStruct obj)Add scripted unnamed/ array object
proto native void ItemFloat(float value)Add unnamed/ array float value
proto native void ItemInteger(int value)Add unnamed/ array integer value
proto native void ItemBoolean(bool value)Add unnamed/ array boolean value
proto native void ItemString(string value)Add unnamed/ array string value
proto native void ItemVector(vector value)Add unnamed/ array vector value
proto native void SetDone()Call this when you've done packing or unpacking (interrupt operation)
proto native void SetFail()Call this when you've done packing or unpacking + want to generate error - prevent to send invalid data etc.
proto native void Pack()Start object packing - when it can be done (when sending remote etc.)
proto native void InstantPack()Start object packing now - for use at main thread only!
proto native void ExpandFromRAW(string data)Start object unpacking from RAW string data
proto native string AsString()Get packed JSON as string (!only if you called Pack() first, it may return null)
Save JSON to file (only If something was loaded or recieved previously!)