Drag[en]gine Script Module DragonScript  1.23
Dragengine.Utils.TextureReplacementList Class Reference

List of texture replacements. More...

Inheritance diagram for Dragengine.Utils.TextureReplacementList:

Public Member Functions

void add (TextureReplacement texture)
 Add texture replacement. More...
 
void addFromStub (StubElement stub)
 Add texture replacements from stub. More...
 
void applyToComponent (Component component)
 Apply all texture replacements to component if possible. More...
 
void forEach (Block aBlock)
 Visit texture replacements using a block. More...
 
TextureReplacement getAt (int index)
 Texture replacement by index. More...
 
int getCount ()
 Number of texture replacements. More...
 
TextureReplacement getNamed (String name)
 Texture replacement by name or null if not found. More...
 
bool hasNamed (String name)
 Named texture replacement is present. More...
 
Object inject (Object injectValue, Block aBlock)
 Process value visiting texture replacements using a block. More...
 
TextureReplacementList new ()
 Create texture replacement list. More...
 
TextureReplacementList new (StubElement stub)
 Create texture replacement list from stub. More...
 
TextureReplacementList new (TextureReplacementList copy)
 Create copy of texture replacement list. More...
 
void remove (TextureReplacement texture)
 Remove texture replacement. More...
 
void removeAll ()
 Remove all texture replacements. More...
 

Detailed Description

List of texture replacements.

See also
TextureReplacement

Member Function Documentation

◆ add()

void Dragengine.Utils.TextureReplacementList.add ( TextureReplacement  texture)

Add texture replacement.

◆ addFromStub()

void Dragengine.Utils.TextureReplacementList.addFromStub ( StubElement  stub)

Add texture replacements from stub.

◆ applyToComponent()

void Dragengine.Utils.TextureReplacementList.applyToComponent ( Component  component)

Apply all texture replacements to component if possible.

◆ forEach()

void Dragengine.Utils.TextureReplacementList.forEach ( Block  aBlock)

Visit texture replacements using a block.

◆ getAt()

TextureReplacement Dragengine.Utils.TextureReplacementList.getAt ( int  index)

Texture replacement by index.

◆ getCount()

int Dragengine.Utils.TextureReplacementList.getCount ( )

Number of texture replacements.

◆ getNamed()

TextureReplacement Dragengine.Utils.TextureReplacementList.getNamed ( String  name)

Texture replacement by name or null if not found.

◆ hasNamed()

bool Dragengine.Utils.TextureReplacementList.hasNamed ( String  name)

Named texture replacement is present.

◆ inject()

Object Dragengine.Utils.TextureReplacementList.inject ( Object  injectValue,
Block  aBlock 
)

Process value visiting texture replacements using a block.

Works like Array.inject(). Block receives as first argument Object injected value and as second argument TextureReplacement texture replacement.

◆ new() [1/3]

TextureReplacementList Dragengine.Utils.TextureReplacementList.new ( )

Create texture replacement list.

◆ new() [2/3]

TextureReplacementList Dragengine.Utils.TextureReplacementList.new ( StubElement  stub)

Create texture replacement list from stub.

◆ new() [3/3]

TextureReplacementList Dragengine.Utils.TextureReplacementList.new ( TextureReplacementList  copy)

Create copy of texture replacement list.

◆ remove()

void Dragengine.Utils.TextureReplacementList.remove ( TextureReplacement  texture)

Remove texture replacement.

◆ removeAll()

void Dragengine.Utils.TextureReplacementList.removeAll ( )

Remove all texture replacements.


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