Drag[en]gine Script Module DragonScript
1.23
|
List of texture replacements. More...
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... | |
List of texture replacements.
void Dragengine.Utils.TextureReplacementList.add | ( | TextureReplacement | texture | ) |
Add texture replacement.
void Dragengine.Utils.TextureReplacementList.addFromStub | ( | StubElement | stub | ) |
Add texture replacements from stub.
void Dragengine.Utils.TextureReplacementList.applyToComponent | ( | Component | component | ) |
Apply all texture replacements to component if possible.
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 | ( | StubElement | stub | ) |
Create texture replacement list from stub.
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.