Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Preloading.StubWorldDecal Class Reference

Stub for decal. More...

Inheritance diagram for Dragengine.Preloading.StubWorldDecal:
Dragengine.Preloading.StubWithProperties Dragengine.ResourceListener

Public Member Functions

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

Public Attributes

Color pColorTint
PreloadCounter pCounter
DMatrix pMatrix
String pPathSkin
DVector pPosition
Vector pRotation
Skin pSkin
String pTextureName
TexMatrix2 pTransform
bool pVisible
Public Attributes inherited from Dragengine.Preloading.StubWithProperties
Dictionary pProperties
 Properties.

Detailed Description

Stub for decal.

Used during asynchronous loading to hold the settings of a decal until all resources have been loaded.

Member Function Documentation

◆ createWorldDecal()

void Dragengine.Preloading.StubWorldDecal.createWorldDecal ( GameWorld gameWorld,
DecalBuilder builder )

Create world decal from the stub information.

References new(), and pRotation.

Referenced by failedLoading().

◆ failedLoading()

◆ finishedLoading()

void Dragengine.Preloading.StubWorldDecal.finishedLoading ( String path,
ResourceLoaderType resourceType,
Object resource )

Resource has finished loading.

Implements Dragengine.ResourceListener.

References getSize().

Referenced by failedLoading().

◆ getColorTint()

Color Dragengine.Preloading.StubWorldDecal.getColorTint ( )

Color tint or null to not replace the color tint.

References pPosition.

Referenced by failedLoading().

◆ getMatrix()

DMatrix Dragengine.Preloading.StubWorldDecal.getMatrix ( )

Stub matrix.

Version
1.26

References getTextureName(), and pTextureName.

Referenced by failedLoading().

◆ getPathSkin()

String Dragengine.Preloading.StubWorldDecal.getPathSkin ( )

Skin path.

References new(), pPathSkin, and pSkin.

Referenced by setPosition().

◆ getPosition()

DVector Dragengine.Preloading.StubWorldDecal.getPosition ( )

Position.

References pCounter.

Referenced by setTransform().

◆ getRotation()

Vector Dragengine.Preloading.StubWorldDecal.getRotation ( )

Rotation.

Referenced by preloadResources().

◆ getSize()

Vector Dragengine.Preloading.StubWorldDecal.getSize ( )

Size.

References pPathSkin.

Referenced by finishedLoading().

◆ getSkin()

Skin Dragengine.Preloading.StubWorldDecal.getSkin ( )

Skin.

References pTransform, and pVisible.

Referenced by setSize().

◆ getTextureName()

String Dragengine.Preloading.StubWorldDecal.getTextureName ( )

Texture name.

References pColorTint.

Referenced by getMatrix().

◆ getTransform()

TexMatrix2 Dragengine.Preloading.StubWorldDecal.getTransform ( )

Texture coordinates transformation or null to not replace the transformation.

References pTextureName.

Referenced by failedLoading().

◆ getVisible()

bool Dragengine.Preloading.StubWorldDecal.getVisible ( )

Visiblity.

Referenced by failedLoading().

◆ loadResources()

void Dragengine.Preloading.StubWorldDecal.loadResources ( )

Load resources.

References setRotation().

Referenced by failedLoading().

◆ new() [1/2]

StubWorldDecal Dragengine.Preloading.StubWorldDecal.new ( )

◆ new() [2/2]

StubWorldDecal Dragengine.Preloading.StubWorldDecal.new ( StubWorldDecal stub)

Create copy of element stub.

References new(), pPosition, pRotation, and pVisible.

◆ preloadResources()

void Dragengine.Preloading.StubWorldDecal.preloadResources ( )

Add preload resources.

References getRotation(), and pPosition.

Referenced by failedLoading().

◆ setColorTint()

void Dragengine.Preloading.StubWorldDecal.setColorTint ( Color color)

Set color tint or null to not replace the color tint.

References new(), and setPosition().

Referenced by failedLoading().

◆ setCounter()

void Dragengine.Preloading.StubWorldDecal.setCounter ( PreloadCounter counter)

Set counter.

Referenced by setTextureName().

◆ setPathSkin()

void Dragengine.Preloading.StubWorldDecal.setPathSkin ( String pathSkin)

Set skin path.

References pPosition, pRotation, and pTextureName.

Referenced by setRotation().

◆ setPosition()

void Dragengine.Preloading.StubWorldDecal.setPosition ( DVector position)

Set position.

References getPathSkin(), and pPathSkin.

Referenced by setColorTint().

◆ setRotation()

void Dragengine.Preloading.StubWorldDecal.setRotation ( Vector rotation)

Set rotation.

References new(), and setPathSkin().

Referenced by loadResources().

◆ setSize()

void Dragengine.Preloading.StubWorldDecal.setSize ( Vector size)

Set size.

References getSkin(), and pSkin.

Referenced by failedLoading().

◆ setTextureName()

void Dragengine.Preloading.StubWorldDecal.setTextureName ( String textureName)

Set texture name.

References setCounter().

Referenced by setVisible().

◆ setTransform()

void Dragengine.Preloading.StubWorldDecal.setTransform ( TexMatrix2 transform)

Set texture coordinates transformation or null to not replace the transformation.

References getPosition().

Referenced by failedLoading().

◆ setVisible()

void Dragengine.Preloading.StubWorldDecal.setVisible ( bool visible)

Set visibility.

References new(), and setTextureName().

Referenced by failedLoading().

◆ verifyPreloading()

bool Dragengine.Preloading.StubWorldDecal.verifyPreloading ( Console console)

Verify resource failed loading and print the problems to the console.

Returns
true if all resources loaded successfully or false otherwise.

References pRotation.

Referenced by failedLoading().

Member Data Documentation

◆ pColorTint

Color Dragengine.Preloading.StubWorldDecal.pColorTint

Referenced by failedLoading(), and getTextureName().

◆ pCounter

PreloadCounter Dragengine.Preloading.StubWorldDecal.pCounter

Referenced by failedLoading(), and getPosition().

◆ pMatrix

DMatrix Dragengine.Preloading.StubWorldDecal.pMatrix

Referenced by failedLoading().

◆ pPathSkin

String Dragengine.Preloading.StubWorldDecal.pPathSkin

◆ pPosition

DVector Dragengine.Preloading.StubWorldDecal.pPosition

◆ pRotation

Vector Dragengine.Preloading.StubWorldDecal.pRotation

◆ pSkin

Skin Dragengine.Preloading.StubWorldDecal.pSkin

Referenced by failedLoading(), getPathSkin(), and setSize().

◆ pTextureName

String Dragengine.Preloading.StubWorldDecal.pTextureName

◆ pTransform

TexMatrix2 Dragengine.Preloading.StubWorldDecal.pTransform

Referenced by failedLoading(), and getSkin().

◆ pVisible

bool Dragengine.Preloading.StubWorldDecal.pVisible

Referenced by failedLoading(), getSkin(), and new().


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