Drag[en]gine Script Module DragonScript
1.23
|
Texture replacement list element class property for use with XML loading. More...
Public Member Functions | |
bool | getHasPreloaded () |
Property has been preloaded. More... | |
TextureReplacementList | getList () |
Texture replacement list. More... | |
ECPTextureReplacementList | new (String name) |
Create property. More... | |
ECPTextureReplacementList | new (String name, TextureReplacementList list) |
Create property with initial value. More... | |
void | setList (TextureReplacementList list) |
Set texture replacement list. 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... | |
bool | logPreloadProblems (ElementClass elementClass, Console console) |
Log preloading problems. More... | |
void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
Preload resources if supported. More... | |
Public Member Functions inherited from Dragengine.ResourceListener | |
void | finishedLoading (String filename, ResourceLoaderType resourceType, Object resource) |
Resource finished loading successfully. More... | |
void | failedLoading (String filename, ResourceLoaderType resourceType) |
Resource failed loading. More... | |
Texture replacement list element class property for use with XML loading.
Texture replacement list is stored as TextureReplacementList instance. From XML the texture replacement list is read using a map type property string. Each map entry is a map defining one texture replacement. The following example defines a texture replacement list with one entry replacing the 'material' texture.
bool Dragengine.Scenery.ECPTextureReplacementList.getHasPreloaded | ( | ) |
Property has been preloaded.
TextureReplacementList Dragengine.Scenery.ECPTextureReplacementList.getList | ( | ) |
Texture replacement list.
ECPTextureReplacementList Dragengine.Scenery.ECPTextureReplacementList.new | ( | String | name | ) |
Create property.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
ECPTextureReplacementList Dragengine.Scenery.ECPTextureReplacementList.new | ( | String | name, |
TextureReplacementList | list | ||
) |
Create property with initial value.
void Dragengine.Scenery.ECPTextureReplacementList.setList | ( | TextureReplacementList | list | ) |
Set texture replacement list.
void Dragengine.Scenery.ECPTextureReplacementList.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.