Drag[en]gine Script Module DragonScript 1.35
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.

References addFromStub(), forEach(), hasNamed(), inject(), pTextures, and removeAll().

Referenced by addFromStub(), and getNamed().

◆ forEach()

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

Visit texture replacements using a block.

References getNamed(), and pTextures.

Referenced by addFromStub().

◆ getAt()

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

Texture replacement by index.

Referenced by removeAll().

◆ getCount()

int Dragengine.Utils.TextureReplacementList.getCount ( )

Number of texture replacements.

Referenced by hasNamed().

◆ getNamed()

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

Texture replacement by name or null if not found.

References addFromStub().

Referenced by forEach().

◆ hasNamed()

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

Named texture replacement is present.

References getCount().

Referenced by addFromStub().

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

Referenced by addFromStub().

◆ new() [1/2]

TextureReplacementList Dragengine.Utils.TextureReplacementList.new ( )

Create texture replacement list.

References new(), and pTextures.

Referenced by new().

◆ new() [2/2]

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

Create copy of texture replacement list.

References pTextures.

◆ remove()

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

Remove texture replacement.

References pTextures.

◆ removeAll()

void Dragengine.Utils.TextureReplacementList.removeAll ( )

Remove all texture replacements.

References getAt(), and pTextures.

Referenced by addFromStub().

Member Data Documentation

◆ pTextures

Array Dragengine.Utils.TextureReplacementList.pTextures

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