Drag[en]gine Script Module DragonScript
1.23
|
Rig resource element class property for use with XML loading. More...
Public Member Functions | |
void | copyValue (ElementClass elementClass, ElementClassProperty property) |
Copy value from another element class property of the same type. More... | |
void | failedLoading (String filename, ResourceLoaderType resourceType) |
Resource failed loading. More... | |
void | finishedLoading (String path, ResourceLoaderType resourceType, Object resource) |
Resource has finished loading. More... | |
bool | getHasPreloaded () |
Property has been preloaded. More... | |
String | getPath () |
Path to rig resource. More... | |
Rig | getRig () |
Rig resource or null if not present. More... | |
Rig | getRig (StubWithProperties stub, ElementClass eclass) |
Rig modified by stub property if present. More... | |
bool | logPreloadProblems (ElementClass elementClass, Console console) |
Log preloading problems. More... | |
ECPRig | new (String name) |
Create property. More... | |
ECPRig | new (String name, String path) |
Create property with initial path. More... | |
void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
Preload resources if supported. More... | |
void | setPath (String path) |
Set path to rig resource. More... | |
void | setRig (Rig rig) |
Set rig resource or null if not present. More... | |
void | setValue (Object value) |
Set value of property from XML decoded value. More... | |
Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty | |
void | dispose () |
Dispose of element class property to break reference loops. More... | |
String | getName () |
Name. More... | |
Notification |
Rig resource element class property for use with XML loading.
Rig resource is set from XML using a path. Loads the resource during preloading. The value of the property is then the loaded resource. If loading fails null resource is stored.
void Dragengine.Scenery.ECPRig.copyValue | ( | ElementClass | elementClass, |
ElementClassProperty | property | ||
) |
Copy value from another element class property of the same type.
void Dragengine.Scenery.ECPRig.failedLoading | ( | String | filename, |
ResourceLoaderType | resourceType | ||
) |
Resource failed loading.
Implements Dragengine.ResourceListener.
void Dragengine.Scenery.ECPRig.finishedLoading | ( | String | path, |
ResourceLoaderType | resourceType, | ||
Object | resource | ||
) |
Resource has finished loading.
Implements Dragengine.ResourceListener.
bool Dragengine.Scenery.ECPRig.getHasPreloaded | ( | ) |
Property has been preloaded.
String Dragengine.Scenery.ECPRig.getPath | ( | ) |
Path to rig resource.
Rig Dragengine.Scenery.ECPRig.getRig | ( | StubWithProperties | stub, |
ElementClass | eclass | ||
) |
Rig modified by stub property if present.
If named stub property is not present or empty string the stored rig is returned. If the named stub property is present it is loaded as rig resource.
bool Dragengine.Scenery.ECPRig.logPreloadProblems | ( | ElementClass | elementClass, |
Console | console | ||
) |
Log preloading problems.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
ECPRig Dragengine.Scenery.ECPRig.new | ( | String | name | ) |
Create property.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
ECPRig Dragengine.Scenery.ECPRig.new | ( | String | name, |
String | path | ||
) |
Create property with initial path.
void Dragengine.Scenery.ECPRig.preloadResources | ( | ElementClass | elementClass, |
PreloadCounter | counter | ||
) |
Preload resources if supported.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
void Dragengine.Scenery.ECPRig.setPath | ( | String | path | ) |
Set path to rig resource.
void Dragengine.Scenery.ECPRig.setRig | ( | Rig | rig | ) |
Set rig resource or null if not present.
void Dragengine.Scenery.ECPRig.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.