Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Preloading.StubWithProperties Class Reference

Base class for stubs having properties. More...

Inheritance diagram for Dragengine.Preloading.StubWithProperties:
Dragengine.Preloading.StubElement Dragengine.Preloading.StubElementTexture Dragengine.Preloading.StubGameWorld Dragengine.Preloading.StubWorldDecal Dragengine.Preloading.StubElementClassNotFound

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.

Detailed Description

Base class for stubs having properties.

Member Function Documentation

◆ getProperties()

Dictionary Dragengine.Preloading.StubWithProperties.getProperties ( )

Copy of all properties as dictionary mapping String key to String value.

Version
1.22

References pProperties, removeAllProperties(), and removePropertyWithKey().

Referenced by writePropertiesToFile().

◆ getPropertyBoolFor()

bool Dragengine.Preloading.StubWithProperties.getPropertyBoolFor ( String key,
bool default )

Boolean property value or default value if absent.

References pProperties, and setPropertyBoolFor().

Referenced by readPropertiesFromFile().

◆ getPropertyCount()

int Dragengine.Preloading.StubWithProperties.getPropertyCount ( )

Number of properties.

Referenced by getPropertyKeys().

◆ getPropertyFloatFor()

float Dragengine.Preloading.StubWithProperties.getPropertyFloatFor ( String key,
float default )

Floating point property value or default value if absent.

References pProperties.

Referenced by writePropertiesToFile().

◆ getPropertyIntFor()

int Dragengine.Preloading.StubWithProperties.getPropertyIntFor ( String key,
int default )

Integer property value or default value if absent.

References setPropertyIntFor().

Referenced by writePropertiesToFile().

◆ getPropertyKeys()

Array Dragengine.Preloading.StubWithProperties.getPropertyKeys ( )

Property keys (String array).

References getPropertyCount(), and pProperties.

Referenced by Dragengine.Preloading.StubWorldDecal.failedLoading(), and getPropertyValueFor().

◆ getPropertyValueFor()

String Dragengine.Preloading.StubWithProperties.getPropertyValueFor ( String key,
String default )

Value of property or default value if absent.

References getPropertyKeys(), and pProperties.

Referenced by setPropertyIntFor().

◆ hasPropertyWithKey()

bool Dragengine.Preloading.StubWithProperties.hasPropertyWithKey ( String key)

Property key is present.

Referenced by setPropertyValueFor().

◆ new() [1/2]

StubWithProperties Dragengine.Preloading.StubWithProperties.new ( )

Create stub with properties.

Reimplemented in Dragengine.Preloading.StubWorldDecal.

References new(), and pProperties.

Referenced by new().

◆ new() [2/2]

StubWithProperties Dragengine.Preloading.StubWithProperties.new ( StubWithProperties stub)

Create copy of stub with properties.

References pProperties.

◆ readPropertiesFromFile()

void Dragengine.Preloading.StubWithProperties.readPropertiesFromFile ( FileReader reader)

◆ removeAllProperties()

void Dragengine.Preloading.StubWithProperties.removeAllProperties ( )

Remove all properties.

References pProperties.

Referenced by Dragengine.Preloading.StubWorldDecal.failedLoading(), and getProperties().

◆ removePropertyWithKey()

void Dragengine.Preloading.StubWithProperties.removePropertyWithKey ( String key)

Remove property if present.

References setPropertyValueFor().

Referenced by getProperties().

◆ setFrom() [1/2]

void Dragengine.Preloading.StubWithProperties.setFrom ( Dictionary properties)

Set all properties from dictionary mapping String key to String value.

Version
1.22

References pProperties.

◆ setFrom() [2/2]

void Dragengine.Preloading.StubWithProperties.setFrom ( StubWithProperties properties)

◆ setPropertyBoolFor()

void Dragengine.Preloading.StubWithProperties.setPropertyBoolFor ( String key,
bool value )

Set property.

References pProperties.

Referenced by getPropertyBoolFor().

◆ setPropertyFloatFor()

void Dragengine.Preloading.StubWithProperties.setPropertyFloatFor ( String key,
float value )

Set property.

Referenced by setFrom().

◆ setPropertyIntFor()

void Dragengine.Preloading.StubWithProperties.setPropertyIntFor ( String key,
int value )

Set property.

References getPropertyValueFor(), and pProperties.

Referenced by getPropertyIntFor().

◆ setPropertyValueFor()

void Dragengine.Preloading.StubWithProperties.setPropertyValueFor ( String key,
String value )

◆ writePropertiesToFile()

Member Data Documentation

◆ pProperties


The documentation for this class was generated from the following file: