|
Drag[en]gine Script Module DragonScript 1.32.1
|
List of texture replacements. More...
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 |
List of texture replacements.
| void Dragengine.Utils.TextureReplacementList.addFromStub | ( | StubElement | stub | ) |
Add texture replacements from stub.
| void Dragengine.Utils.TextureReplacementList.forEach | ( | Block | aBlock | ) |
Visit texture replacements using a block.
| TextureReplacement Dragengine.Utils.TextureReplacementList.getAt | ( | int | index | ) |
Texture replacement by index.
| int Dragengine.Utils.TextureReplacementList.getCount | ( | ) |
Number of texture replacements.
| TextureReplacement Dragengine.Utils.TextureReplacementList.getNamed | ( | String | name | ) |
Texture replacement by name or null if not found.
| bool Dragengine.Utils.TextureReplacementList.hasNamed | ( | String | name | ) |
Named texture replacement is present.
| 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.
| TextureReplacementList Dragengine.Utils.TextureReplacementList.new | ( | ) |
Create texture replacement list.
| TextureReplacementList Dragengine.Utils.TextureReplacementList.new | ( | TextureReplacementList | copy | ) |
Create copy of texture replacement list.
| void Dragengine.Utils.TextureReplacementList.remove | ( | TextureReplacement | texture | ) |
Remove texture replacement.
| void Dragengine.Utils.TextureReplacementList.removeAll | ( | ) |
Remove all texture replacements.
| Array Dragengine.Utils.TextureReplacementList.pTextures |