|
Enfusion Script API
|
Public Member Functions | |
| proto external void | RegV (string name) |
| Register script variable for automatic processing of JSON stream. | |
| proto external void | UnregV (string name) |
| Unregister script variable from automatic processing of JSON stream. | |
| proto external void | RegAll () |
| Register all variable present on object for auto processing (it is not recursive!) | |
| proto external void | StartObject (string name) |
| Start object at hierarchy - ! | |
| proto external void | EndObject () |
| End object at hierarchy - ! | |
| proto external void | StoreObject (string name, JsonApiStruct obj) |
| Add scripted object to hierarchy (calls through hierarchy) | |
| proto external void | StoreFloat (string name, float value) |
| Add float value to hierarchy. | |
| proto external void | StoreInteger (string name, int value) |
| Add integer value to hierarchy. | |
| proto external void | StoreBoolean (string name, bool value) |
| Add boolean value to hierarchy. | |
| proto external void | StoreString (string name, string value) |
| Add string value to hierarchy. | |
| proto external void | StoreVector (string name, vector value) |
| Add vector value to hierarchy. | |
| proto external void | StartArray (string name) |
| Start array at hierarchy - ! | |
| proto external void | EndArray () |
| End array at hierarchy - ! | |
| proto external void | ItemObject (JsonApiStruct obj) |
| Add scripted unnamed/ array object. | |
| proto external void | ItemFloat (float value) |
| Add unnamed/ array float value. | |
| proto external void | ItemInteger (int value) |
| Add unnamed/ array integer value. | |
| proto external void | ItemBoolean (bool value) |
| Add unnamed/ array boolean value. | |
| proto external void | ItemString (string value) |
| Add unnamed/ array string value. | |
| proto external void | ItemVector (vector value) |
| Add unnamed/ array vector value. | |
| proto external void | ItemArray () |
| Start an array inside an array. | |
| proto external void | Pack () |
| Create JSON data from this object. | |
| proto external void | ExpandFromRAW (string data) |
| Start object initialization from provided RAW string data. | |
| proto external string | AsString () |
| Get object as JSON string (If no data are present - empty JSON string object is passed) | |
| proto external bool | HasData () |
| Return true if stringified JSON are present (readable as string) | |
| proto external bool | PackToFile (string FileName) |
| Create JSON data and save it to file. | |
| proto external bool | SaveToFile (string FileName) |
| Save to file (only if data are present from previous operation - load for example) as JSON data. | |
| proto external bool | LoadFromFile (string FileName) |
| Load JSON from file and use it to initialize this object. | |
| void | OnExpand () |
| Event when expand (unpack) process starts. | |
| void | OnPack () |
| Event when pack starts - you will pack your stuff here. | |
| void | OnSuccess (int errorCode) |
| Event called when operation finished with Success errorCode is EJsonApiError. | |
| void | OnError (int errorCode) |
| Event called when operation finished with Error errorCode is EJsonApiError. | |
| void | OnObject (string name) |
| Called when parsing object. | |
| void | OnStartArray (string name) |
| Called when parsing array. | |
| void | OnEndArray (int itemCount) |
| Called when array end, returns count of items. | |
| void | OnItemObject (int index, string name) |
| Called when parsing object. | |
Public Member Functions inherited from Managed | |
| proto external ref Managed | Clone () |
| Return shallow copy of object, or null if it is not allowed (not public constructor) | |
object which allow to parse upon generic JSON structure and format it back
| proto external string JsonApiStruct.AsString | ( | ) |
Get object as JSON string (If no data are present - empty JSON string object is passed)
| proto external void JsonApiStruct.EndArray | ( | ) |
End array at hierarchy - !
!! Be cautious and doublecheck results when using this !!!
| proto external void JsonApiStruct.EndObject | ( | ) |
End object at hierarchy - !
!! Be cautious and doublecheck results when using this !!!
| proto external void JsonApiStruct.ExpandFromRAW | ( | string | data | ) |
Start object initialization from provided RAW string data.
| proto external bool JsonApiStruct.HasData | ( | ) |
Return true if stringified JSON are present (readable as string)
| proto external void JsonApiStruct.ItemArray | ( | ) |
Start an array inside an array.
| proto external void JsonApiStruct.ItemBoolean | ( | bool | value | ) |
Add unnamed/ array boolean value.
| proto external void JsonApiStruct.ItemFloat | ( | float | value | ) |
Add unnamed/ array float value.
| proto external void JsonApiStruct.ItemInteger | ( | int | value | ) |
Add unnamed/ array integer value.
| proto external void JsonApiStruct.ItemObject | ( | JsonApiStruct | obj | ) |
Add scripted unnamed/ array object.
| proto external void JsonApiStruct.ItemString | ( | string | value | ) |
Add unnamed/ array string value.
| proto external void JsonApiStruct.ItemVector | ( | vector | value | ) |
Add unnamed/ array vector value.
Load JSON from file and use it to initialize this object.
| void JsonApiStruct.OnEndArray | ( | int | itemCount | ) |
Called when array end, returns count of items.
| void JsonApiStruct.OnError | ( | int | errorCode | ) |
Event called when operation finished with Error errorCode is EJsonApiError.
| void JsonApiStruct.OnExpand | ( | ) |
Event when expand (unpack) process starts.
Implemented in DSGameConfig, and DSGameProperties.
| void JsonApiStruct.OnObject | ( | string | name | ) |
Called when parsing object.
| void JsonApiStruct.OnPack | ( | ) |
Event when pack starts - you will pack your stuff here.
Implemented in AnimExportProfileChannelsResponse, AnimExportProfilesResponse, BlenderOperatorDescription, DSGameConfig, DSGameProperties, GenericJSONContainer, GenericResourceInfo, GetLoadedProjectsResponse, LayerPresetsResponse, MaterialResourceInfo, PrefabImportResponse, and XOBResourceInfo.
| void JsonApiStruct.OnStartArray | ( | string | name | ) |
Called when parsing array.
| void JsonApiStruct.OnSuccess | ( | int | errorCode | ) |
Event called when operation finished with Success errorCode is EJsonApiError.
| proto external void JsonApiStruct.Pack | ( | ) |
Create JSON data from this object.
Create JSON data and save it to file.
| proto external void JsonApiStruct.RegAll | ( | ) |
Register all variable present on object for auto processing (it is not recursive!)
| proto external void JsonApiStruct.RegV | ( | string | name | ) |
Register script variable for automatic processing of JSON stream.
Save to file (only if data are present from previous operation - load for example) as JSON data.
| proto external void JsonApiStruct.StartArray | ( | string | name | ) |
Start array at hierarchy - !
!! Be cautious and doublecheck results when using this !!!
| proto external void JsonApiStruct.StartObject | ( | string | name | ) |
Start object at hierarchy - !
!! Be cautious and doublecheck results when using this !!!
Add boolean value to hierarchy.
Add float value to hierarchy.
Add integer value to hierarchy.
| proto external void JsonApiStruct.StoreObject | ( | string | name, |
| JsonApiStruct | obj ) |
Add scripted object to hierarchy (calls through hierarchy)
Add string value to hierarchy.
Add vector value to hierarchy.
| proto external void JsonApiStruct.UnregV | ( | string | name | ) |
Unregister script variable from automatic processing of JSON stream.