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