Drag[en]gine Script Module DragonScript
1.23
|
Stub for decal. More...
Public Member Functions | |
void | createWorldDecal (GameWorld gameWorld, DecalBuilder builder) |
Create world decal from the stub information. More... | |
void | failedLoading (String path, ResourceLoaderType resourceType) |
Resource has failed loading. More... | |
void | finishedLoading (String path, ResourceLoaderType resourceType, Object resource) |
Resource has finished loading. More... | |
Color | getColorTint () |
Color tint or null to not replace the color tint. More... | |
String | getPathSkin () |
Skin path. More... | |
DVector | getPosition () |
Position. More... | |
Vector | getRotation () |
Rotation. More... | |
Vector | getSize () |
Size. More... | |
Skin | getSkin () |
Skin. More... | |
String | getTextureName () |
Texture name. More... | |
TexMatrix2 | getTransform () |
Texture coordinates transformation or null to not replace the transformation. More... | |
bool | getVisible () |
Visiblity. More... | |
void | loadResources () |
Load resources. More... | |
StubWorldDecal | new () |
Create stub decal. More... | |
StubWorldDecal | new (StubWorldDecal stub) |
Create copy of element stub. More... | |
void | preloadResources () |
Add preload resources. More... | |
void | setColorTint (Color color) |
Set color tint or null to not replace the color tint. More... | |
void | setCounter (PreloadCounter counter) |
Set counter. More... | |
void | setPathSkin (String pathSkin) |
Set skin path. More... | |
void | setPosition (DVector position) |
Set position. More... | |
void | setRotation (Vector rotation) |
Set rotation. More... | |
void | setSize (Vector size) |
Set size. More... | |
void | setTextureName (String textureName) |
Set texture name. More... | |
void | setTransform (TexMatrix2 transform) |
Set texture coordinates transformation or null to not replace the transformation. More... | |
void | setVisible (bool visible) |
Set visibility. More... | |
bool | verifyPreloading (Console console) |
Verify resource failed loading and print the problems to the console. More... | |
Public Member Functions inherited from Dragengine.Preloading.StubWithProperties | |
Dictionary | getProperties () |
Copy of all properties as dictionary mapping String key to String value. More... | |
bool | getPropertyBoolFor (String key, bool default) |
Boolean property value or default value if absent. More... | |
int | getPropertyCount () |
Number of properties. More... | |
float | getPropertyFloatFor (String key, float default) |
Floating point property value or default value if absent. More... | |
int | getPropertyIntFor (String key, int default) |
Integer property value or default value if absent. More... | |
Array | getPropertyKeys () |
Property keys (String array). More... | |
String | getPropertyValueFor (String key, String default) |
Value of property or default value if absent. More... | |
bool | hasPropertyWithKey (String key) |
Property key is present. More... | |
StubWithProperties | new (StubWithProperties stub) |
Create copy of stub with properties. More... | |
void | readPropertiesFromFile (FileReader reader) |
Read properties from file. More... | |
void | removeAllProperties () |
Remove all properties. More... | |
void | removePropertyWithKey (String key) |
Remove property if present. More... | |
void | setFrom (Dictionary properties) |
Set all properties from dictionary mapping String key to String value. More... | |
void | setFrom (StubWithProperties properties) |
Set properties from another StubWithProperties. More... | |
void | setPropertyBoolFor (String key, bool value) |
Set property. More... | |
void | setPropertyFloatFor (String key, float value) |
Set property. More... | |
void | setPropertyIntFor (String key, int value) |
Set property. More... | |
void | setPropertyValueFor (String key, String value) |
Set property. More... | |
void | writePropertiesToFile (FileWriter writer) |
Write properties to file. More... | |
Notification |
Additional Inherited Members | |
Public Attributes inherited from Dragengine.Preloading.StubWithProperties | |
Dictionary | pProperties |
Properties. More... | |
Stub for decal.
Used during asynchronous loading to hold the settings of a decal until all resources have been loaded.
void Dragengine.Preloading.StubWorldDecal.createWorldDecal | ( | GameWorld | gameWorld, |
DecalBuilder | builder | ||
) |
Create world decal from the stub information.
void Dragengine.Preloading.StubWorldDecal.failedLoading | ( | String | path, |
ResourceLoaderType | resourceType | ||
) |
Resource has failed loading.
Implements Dragengine.ResourceListener.
void Dragengine.Preloading.StubWorldDecal.finishedLoading | ( | String | path, |
ResourceLoaderType | resourceType, | ||
Object | resource | ||
) |
Resource has finished loading.
Implements Dragengine.ResourceListener.
Color Dragengine.Preloading.StubWorldDecal.getColorTint | ( | ) |
Color tint or null to not replace the color tint.
String Dragengine.Preloading.StubWorldDecal.getPathSkin | ( | ) |
Skin path.
DVector Dragengine.Preloading.StubWorldDecal.getPosition | ( | ) |
Position.
Vector Dragengine.Preloading.StubWorldDecal.getRotation | ( | ) |
Rotation.
Vector Dragengine.Preloading.StubWorldDecal.getSize | ( | ) |
Size.
Skin Dragengine.Preloading.StubWorldDecal.getSkin | ( | ) |
Skin.
String Dragengine.Preloading.StubWorldDecal.getTextureName | ( | ) |
Texture name.
TexMatrix2 Dragengine.Preloading.StubWorldDecal.getTransform | ( | ) |
Texture coordinates transformation or null to not replace the transformation.
bool Dragengine.Preloading.StubWorldDecal.getVisible | ( | ) |
Visiblity.
void Dragengine.Preloading.StubWorldDecal.loadResources | ( | ) |
Load resources.
StubWorldDecal Dragengine.Preloading.StubWorldDecal.new | ( | ) |
Create stub decal.
Reimplemented from Dragengine.Preloading.StubWithProperties.
StubWorldDecal Dragengine.Preloading.StubWorldDecal.new | ( | StubWorldDecal | stub | ) |
Create copy of element stub.
void Dragengine.Preloading.StubWorldDecal.preloadResources | ( | ) |
Add preload resources.
void Dragengine.Preloading.StubWorldDecal.setColorTint | ( | Color | color | ) |
Set color tint or null to not replace the color tint.
void Dragengine.Preloading.StubWorldDecal.setCounter | ( | PreloadCounter | counter | ) |
Set counter.
void Dragengine.Preloading.StubWorldDecal.setPathSkin | ( | String | pathSkin | ) |
Set skin path.
void Dragengine.Preloading.StubWorldDecal.setPosition | ( | DVector | position | ) |
Set position.
void Dragengine.Preloading.StubWorldDecal.setRotation | ( | Vector | rotation | ) |
Set rotation.
void Dragengine.Preloading.StubWorldDecal.setSize | ( | Vector | size | ) |
Set size.
void Dragengine.Preloading.StubWorldDecal.setTextureName | ( | String | textureName | ) |
Set texture name.
void Dragengine.Preloading.StubWorldDecal.setTransform | ( | TexMatrix2 | transform | ) |
Set texture coordinates transformation or null to not replace the transformation.
void Dragengine.Preloading.StubWorldDecal.setVisible | ( | bool | visible | ) |
Set visibility.
bool Dragengine.Preloading.StubWorldDecal.verifyPreloading | ( | Console | console | ) |
Verify resource failed loading and print the problems to the console.