|
Drag[en]gine Script Module DragonScript 1.32.1
|
Base class for stubs having properties. More...
Public Member Functions | |
| Dictionary | getProperties () |
| Copy of all properties as dictionary mapping String key to String value. | |
| bool | getPropertyBoolFor (String key, bool default) |
| Boolean property value or default value if absent. | |
| int | getPropertyCount () |
| Number of properties. | |
| float | getPropertyFloatFor (String key, float default) |
| Floating point property value or default value if absent. | |
| int | getPropertyIntFor (String key, int default) |
| Integer property value or default value if absent. | |
| Array | getPropertyKeys () |
| Property keys (String array). | |
| String | getPropertyValueFor (String key, String default) |
| Value of property or default value if absent. | |
| bool | hasPropertyWithKey (String key) |
| Property key is present. | |
| StubWithProperties | new () |
| Create stub with properties. | |
| StubWithProperties | new (StubWithProperties stub) |
| Create copy of stub with properties. | |
| void | readPropertiesFromFile (FileReader reader) |
| Read properties from file. | |
| void | removeAllProperties () |
| Remove all properties. | |
| void | removePropertyWithKey (String key) |
| Remove property if present. | |
| void | setFrom (Dictionary properties) |
| Set all properties from dictionary mapping String key to String value. | |
| void | setFrom (StubWithProperties properties) |
| Set properties from another StubWithProperties. | |
| void | setPropertyBoolFor (String key, bool value) |
| Set property. | |
| void | setPropertyFloatFor (String key, float value) |
| Set property. | |
| void | setPropertyIntFor (String key, int value) |
| Set property. | |
| void | setPropertyValueFor (String key, String value) |
| Set property. | |
| void | writePropertiesToFile (FileWriter writer) |
| Write properties to file. | |
Public Attributes | |
| Dictionary | pProperties |
| Properties. | |
Base class for stubs having properties.
| Dictionary Dragengine.Preloading.StubWithProperties.getProperties | ( | ) |
Copy of all properties as dictionary mapping String key to String value.
| bool Dragengine.Preloading.StubWithProperties.getPropertyBoolFor | ( | String | key, |
| bool | default | ||
| ) |
Boolean property value or default value if absent.
| int Dragengine.Preloading.StubWithProperties.getPropertyCount | ( | ) |
Number of properties.
| float Dragengine.Preloading.StubWithProperties.getPropertyFloatFor | ( | String | key, |
| float | default | ||
| ) |
Floating point property value or default value if absent.
| int Dragengine.Preloading.StubWithProperties.getPropertyIntFor | ( | String | key, |
| int | default | ||
| ) |
Integer property value or default value if absent.
| Array Dragengine.Preloading.StubWithProperties.getPropertyKeys | ( | ) |
Property keys (String array).
| String Dragengine.Preloading.StubWithProperties.getPropertyValueFor | ( | String | key, |
| String | default | ||
| ) |
Value of property or default value if absent.
| bool Dragengine.Preloading.StubWithProperties.hasPropertyWithKey | ( | String | key | ) |
Property key is present.
| StubWithProperties Dragengine.Preloading.StubWithProperties.new | ( | ) |
Create stub with properties.
Reimplemented in Dragengine.Preloading.StubWorldDecal.
| StubWithProperties Dragengine.Preloading.StubWithProperties.new | ( | StubWithProperties | stub | ) |
Create copy of stub with properties.
| void Dragengine.Preloading.StubWithProperties.readPropertiesFromFile | ( | FileReader | reader | ) |
Read properties from file.
| void Dragengine.Preloading.StubWithProperties.removeAllProperties | ( | ) |
Remove all properties.
| void Dragengine.Preloading.StubWithProperties.removePropertyWithKey | ( | String | key | ) |
Remove property if present.
| void Dragengine.Preloading.StubWithProperties.setFrom | ( | Dictionary | properties | ) |
Set all properties from dictionary mapping String key to String value.
| void Dragengine.Preloading.StubWithProperties.setFrom | ( | StubWithProperties | properties | ) |
Set properties from another StubWithProperties.
| void Dragengine.Preloading.StubWithProperties.setPropertyBoolFor | ( | String | key, |
| bool | value | ||
| ) |
Set property.
| void Dragengine.Preloading.StubWithProperties.setPropertyFloatFor | ( | String | key, |
| float | value | ||
| ) |
Set property.
| void Dragengine.Preloading.StubWithProperties.setPropertyIntFor | ( | String | key, |
| int | value | ||
| ) |
Set property.
| void Dragengine.Preloading.StubWithProperties.setPropertyValueFor | ( | String | key, |
| String | value | ||
| ) |
Set property.
| void Dragengine.Preloading.StubWithProperties.writePropertiesToFile | ( | FileWriter | writer | ) |
Write properties to file.
| Dictionary Dragengine.Preloading.StubWithProperties.pProperties |
Properties.