Drag[en]gine Script Module DragonScript 1.32.1
Loading...
Searching...
No Matches
Dragengine.Utils.TextureReplacementList Class Reference

List of texture replacements. More...

Inheritance diagram for Dragengine.Utils.TextureReplacementList:

Public Member Functions

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

Public Attributes

Array pTextures
 

Detailed Description

List of texture replacements.

See also
TextureReplacement

Member Function Documentation

◆ addFromStub()

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

Add texture replacements from stub.

◆ 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/2]

TextureReplacementList Dragengine.Utils.TextureReplacementList.new ( )

Create texture replacement list.

◆ new() [2/2]

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.

Member Data Documentation

◆ pTextures

Array Dragengine.Utils.TextureReplacementList.pTextures

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