|
Drag[en]gine Script Module DragonScript 1.35
|
Public Member Functions | |
Management | |
| ServiceObjectType | getValueType () |
| Value type. | |
| bool | isBoolean () |
| Is boolean value. | |
| bool | getBoolean () |
| Boolean value. | |
| bool | isInteger () |
| Is integer value. | |
| int | getInteger () |
| Integer value. | |
| bool | isFloat () |
| Is float value. | |
| float | getFloat () |
| Float value. | |
| bool | isString () |
| Is string value. | |
| String | getString () |
| String value. | |
| bool | isResource () |
| Is resource value. | |
| Object | getResource () |
| Resource value. | |
| bool | isData () |
| Is data value. | |
| MemoryFile | getData () |
| Data value. | |
| bool | isList () |
| Is list value. | |
| bool | isDictionary () |
| Is dictionary value. | |
| int | getChildCount () |
| Count of child objects. | |
| Array | getChildrenKeys () |
| List of all children keys. | |
| ServiceObject | getChildAt (int index) |
| Child object at index. | |
| ServiceObject | getChildAt (String key) |
| Child object with key or nullptr if absent. | |
| void | addChild (ServiceObject value) |
| Add child object. | |
| void | setChildAt (String key, ServiceObject value) |
| Set child object with key overwriting existing child if present. | |
| void | addBoolChild (bool value) |
| Add boolean child object. | |
| void | setBoolChildAt (String key, bool value) |
| Set boolean child with key overwriting existing child if present. | |
| void | addIntChild (int value) |
| Add integer child object. | |
| void | setIntChildAt (String key, int value) |
| Set integer child with key overwriting existing child if present. | |
| void | addFloatChild (float value) |
| Add float child object. | |
| void | setFloatChildAt (String key, float value) |
| Set float child with key overwriting existing child if present. | |
| void | addStringChild (String value) |
| Add string child object. | |
| void | setStringChildAt (String key, String value) |
| Set string child with key overwriting existing child if present. | |
| void | addResourceChild (Object value) |
| Add resource child object. | |
| void | setResourceChildAt (String key, Object value) |
| Set resource child with key overwriting existing child if present. | |
| void | addDataChild (MemoryFile value) |
| Add data child object. | |
| void | setDataChildAt (String key, MemoryFile value) |
| Set data child with key overwriting existing child if present. | |
| void | removeChild (int index) |
| Remove child at index. | |
| void | removeChild (String key) |
| Remove child object with key if present. | |
| void | removeAllChildren () |
| Remove all child objects. | |
| bool | equals (Object other) |
| Service objects are equal. | |
Constructors | |
| ServiceObject | new () |
| Create service object of type ServiceObjectType#dictionary. | |
| ServiceObject | new (ServiceObject copy, bool deep) |
| Create copy of service object. | |
| static ServiceObject | newBool (bool value) |
| Create service object of type ServiceObjectType#boolean with value. | |
| static ServiceObject | newInt (int value) |
| Create service object of type ServiceObjectType#integer with value. | |
| static ServiceObject | newFloat (float value) |
| Create service object of type ServiceObjectType#floating with value. | |
| static ServiceObject | newString (String value) |
| Create service object of type ServiceObjectType#string with value. | |
| static ServiceObject | newResource (Object value) |
| Create service object of type ServiceObjectType#resource with value. | |
| static ServiceObject | newData (MemoryFile value) |
| Create service object of type ServiceObjectType#data with value. | |
| static ServiceObject | newList () |
| Create service object of type ServiceObjectType#list with value. | |
Service object.
Stores data object for use with platform services. Object value can be a boolean, an integer, a float, a string, a resource, data or a dictionary of objects. A list of objects is represented as a dictionary with the string index as key.
This is a native class.
| void Dragengine.ServiceObject.addBoolChild | ( | bool | value | ) |
Add boolean child object.
| EInvalidParam | Value type is not ServiceObjectType#list. |
References isDictionary().
Referenced by setResourceChildAt().
| void Dragengine.ServiceObject.addChild | ( | ServiceObject | value | ) |
Add child object.
| EInvalidParam | Value type is not ServiceObjectType#list. |
References getData().
Referenced by setStringChildAt().
| void Dragengine.ServiceObject.addDataChild | ( | MemoryFile | value | ) |
Add data child object.
| EInvalidParam | Value type is not ServiceObjectType#list. |
References setBoolChildAt().
Referenced by equals().
| void Dragengine.ServiceObject.addFloatChild | ( | float | value | ) |
Add float child object.
| EInvalidParam | Value type is not ServiceObjectType#list. |
References getChildAt().
Referenced by removeAllChildren().
| void Dragengine.ServiceObject.addIntChild | ( | int | value | ) |
Add integer child object.
| EInvalidParam | Value type is not ServiceObjectType#list. |
Referenced by setDataChildAt().
| void Dragengine.ServiceObject.addResourceChild | ( | Object | value | ) |
Add resource child object.
| EInvalidParam | Value type is not ServiceObjectType#list. |
References setChildAt().
Referenced by equals().
| void Dragengine.ServiceObject.addStringChild | ( | String | value | ) |
Add string child object.
| EInvalidParam | Value type is not ServiceObjectType#list. |
Referenced by equals().
| bool Dragengine.ServiceObject.equals | ( | Object | other | ) |
Service objects are equal.
Implements Object#equals(Object).
References addDataChild(), addResourceChild(), addStringChild(), equals(), removeAllChildren(), removeChild(), setDataChildAt(), setResourceChildAt(), and setStringChildAt().
Referenced by equals().
| bool Dragengine.ServiceObject.getBoolean | ( | ) |
Boolean value.
| EInvalidParam | Value type is not ServiceObjectType#boolean. |
Referenced by isFloat().
| ServiceObject Dragengine.ServiceObject.getChildAt | ( | int | index | ) |
Child object at index.
| EInvalidParam | Value type is not ServiceObjectType#list. |
Referenced by addFloatChild(), and setFloatChildAt().
| ServiceObject Dragengine.ServiceObject.getChildAt | ( | String | key | ) |
Child object with key or nullptr if absent.
| EInvalidParam | Value type is not ServiceObjectType#dictionary. |
References isData().
| int Dragengine.ServiceObject.getChildCount | ( | ) |
Count of child objects.
| EInvalidParam | Value type is not ServiceObjectType#list nor ServiceObjectType#dictionary. |
References isResource().
Referenced by setBoolChildAt().
| Array Dragengine.ServiceObject.getChildrenKeys | ( | ) |
List of all children keys.
| EInvalidParam | Value type is not ServiceObjectType#dictionary. |
References getResource().
Referenced by setIntChildAt().
| MemoryFile Dragengine.ServiceObject.getData | ( | ) |
Data value.
| EInvalidParam | Value type is not ServiceObjectType#data. |
References isString().
Referenced by addChild().
| float Dragengine.ServiceObject.getFloat | ( | ) |
Float value.
| EInvalidParam | Value type is not ServiceObjectType#floating. |
Referenced by isData().
| int Dragengine.ServiceObject.getInteger | ( | ) |
Integer value.
| EInvalidParam | Value type is not ServiceObjectType#integer. |
References isBoolean().
Referenced by getString().
| Object Dragengine.ServiceObject.getResource | ( | ) |
Resource value.
| EInvalidParam | Value type is not ServiceObjectType#resource. |
Referenced by getChildrenKeys().
| String Dragengine.ServiceObject.getString | ( | ) |
String value.
| EInvalidParam | Value type is not ServiceObjectType#string. |
References getInteger().
Referenced by isDictionary().
| ServiceObjectType Dragengine.ServiceObject.getValueType | ( | ) |
| bool Dragengine.ServiceObject.isBoolean | ( | ) |
| bool Dragengine.ServiceObject.isData | ( | ) |
| bool Dragengine.ServiceObject.isDictionary | ( | ) |
| bool Dragengine.ServiceObject.isFloat | ( | ) |
| bool Dragengine.ServiceObject.isInteger | ( | ) |
| bool Dragengine.ServiceObject.isList | ( | ) |
Is list value.
Referenced by setChildAt().
| bool Dragengine.ServiceObject.isResource | ( | ) |
| bool Dragengine.ServiceObject.isString | ( | ) |
| ServiceObject Dragengine.ServiceObject.new | ( | ) |
Create service object of type ServiceObjectType#dictionary.
References new().
Referenced by isBoolean(), and new().
| ServiceObject Dragengine.ServiceObject.new | ( | ServiceObject | copy, |
| bool | deep ) |
Create copy of service object.
References newData(), and newResource().
|
static |
|
static |
Create service object of type ServiceObjectType#data with value.
References newString().
Referenced by new().
|
static |
Create service object of type ServiceObjectType#floating with value.
References newInt().
Referenced by newString().
|
static |
Create service object of type ServiceObjectType#integer with value.
Referenced by newFloat().
|
static |
Create service object of type ServiceObjectType#list with value.
Referenced by getValueType().
|
static |
Create service object of type ServiceObjectType#resource with value.
Referenced by new().
|
static |
Create service object of type ServiceObjectType#string with value.
References newFloat().
Referenced by newData().
| void Dragengine.ServiceObject.removeAllChildren | ( | ) |
Remove all child objects.
| EInvalidParam | Value type is not ServiceObjectType#list or ServiceObjectType#dictionary. |
References addFloatChild(), and setFloatChildAt().
Referenced by equals().
| void Dragengine.ServiceObject.removeChild | ( | int | index | ) |
Remove child at index.
| EInvalidParam | Value type is not ServiceObjectType#list. |
References setIntChildAt().
Referenced by equals().
| void Dragengine.ServiceObject.removeChild | ( | String | key | ) |
Remove child object with key if present.
| EInvalidParam | Value type is not ServiceObjectType#dictionary. |
| void Dragengine.ServiceObject.setBoolChildAt | ( | String | key, |
| bool | value ) |
Set boolean child with key overwriting existing child if present.
| EInvalidParam | Value type is not ServiceObjectType#dictionary. |
References getChildCount().
Referenced by addDataChild().
| void Dragengine.ServiceObject.setChildAt | ( | String | key, |
| ServiceObject | value ) |
Set child object with key overwriting existing child if present.
| EInvalidParam | Value type is not ServiceObjectType#dictionary. |
References isList().
Referenced by addResourceChild().
| void Dragengine.ServiceObject.setDataChildAt | ( | String | key, |
| MemoryFile | value ) |
Set data child with key overwriting existing child if present.
| EInvalidParam | Value type is not ServiceObjectType#dictionary. |
References addIntChild().
Referenced by equals().
| void Dragengine.ServiceObject.setFloatChildAt | ( | String | key, |
| float | value ) |
Set float child with key overwriting existing child if present.
| EInvalidParam | Value type is not ServiceObjectType#dictionary. |
References getChildAt().
Referenced by removeAllChildren().
| void Dragengine.ServiceObject.setIntChildAt | ( | String | key, |
| int | value ) |
Set integer child with key overwriting existing child if present.
| EInvalidParam | Value type is not ServiceObjectType#dictionary. |
References getChildrenKeys().
Referenced by removeChild().
| void Dragengine.ServiceObject.setResourceChildAt | ( | String | key, |
| Object | value ) |
Set resource child with key overwriting existing child if present.
| EInvalidParam | Value type is not ServiceObjectType#dictionary. |
References addBoolChild().
Referenced by equals().
| void Dragengine.ServiceObject.setStringChildAt | ( | String | key, |
| String | value ) |
Set string child with key overwriting existing child if present.
| EInvalidParam | Value type is not ServiceObjectType#dictionary. |
References addChild().
Referenced by equals().