Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECPTextureReplacementList Class Reference

Texture replacement list element class property for use with XML loading. More...

Inheritance diagram for Dragengine.Scenery.ECPTextureReplacementList:
Dragengine.Scenery.ElementClassProperty Dragengine.ResourceListener

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...
 

Detailed Description

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.

<map name='propertyName'>
<map key='material'>
<string key='skin'>different_material.deskin</string>
<color key='tint' r='0.5' g='0.8' b='1'/>
<map key='transform'>
<vector2 key='scale' x='2' y='2'/>
<float key='rotate'>90</float>
<vector2 key='translate' x='0.5' y='0'/>
</map>
</map>
</map>

Member Function Documentation

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPTextureReplacementList.getHasPreloaded ( )

Property has been preloaded.

◆ getList()

TextureReplacementList Dragengine.Scenery.ECPTextureReplacementList.getList ( )

Texture replacement list.

◆ new() [1/2]

ECPTextureReplacementList Dragengine.Scenery.ECPTextureReplacementList.new ( String  name)

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ new() [2/2]

ECPTextureReplacementList Dragengine.Scenery.ECPTextureReplacementList.new ( String  name,
TextureReplacementList  list 
)

Create property with initial value.

◆ setList()

void Dragengine.Scenery.ECPTextureReplacementList.setList ( TextureReplacementList  list)

Set texture replacement list.

◆ setValue()

void Dragengine.Scenery.ECPTextureReplacementList.setValue ( Object  value)

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.


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