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

OcclusionMesh resource element class property for use with XML loading. More...

Inheritance diagram for Dragengine.Scenery.ECPOcclusionMesh:
Dragengine.Scenery.ElementClassProperty Dragengine.ResourceListener

Public Member Functions

void copyValue (ElementClass elementClass, ElementClassProperty property)
 Copy value from another element class property of the same type.
void failedLoading (String filename, ResourceLoaderType resourceType)
 Resource failed loading.
void finishedLoading (String path, ResourceLoaderType resourceType, Object resource)
 Resource has finished loading.
bool getHasPreloaded ()
 Property has been preloaded.
OcclusionMesh getOcclusionMesh ()
 Occlusion mesh resource or null if not present.
OcclusionMesh getOcclusionMesh (StubWithProperties stub, ElementClass eclass)
 OcclusionMesh modified by stub property if present.
String getPath ()
 Path to occlusion mesh resource.
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems.
ECPOcclusionMesh new (String name)
 Create property.
ECPOcclusionMesh new (String name, String path)
 Create property with initial path.
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported.
void setOcclusionMesh (OcclusionMesh occlusionMesh)
 Set occlusion mesh resource or null if not present.
void setPath (String path)
 Set path to occlusion mesh resource.
void setValue (Object value)
 Set value of property from XML decoded value.
Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty
void dispose ()
 Dispose of element class property to break reference loops.
String getName ()
 Name.
Public Member Functions inherited from Dragengine.ResourceListener

Detailed Description

OcclusionMesh resource element class property for use with XML loading.

OcclusionMesh resource is set from XML using a path. Loads the resource during preloading. The value of the property is then the loaded resource. If loading fails null resource is stored.

Member Function Documentation

◆ copyValue()

void Dragengine.Scenery.ECPOcclusionMesh.copyValue ( ElementClass elementClass,
ElementClassProperty property )

Copy value from another element class property of the same type.

Version
1.17

References getHasPreloaded().

Referenced by logPreloadProblems().

◆ failedLoading()

void Dragengine.Scenery.ECPOcclusionMesh.failedLoading ( String filename,
ResourceLoaderType resourceType )

Resource failed loading.

Implements Dragengine.ResourceListener.

References preloadResources().

Referenced by getOcclusionMesh().

◆ finishedLoading()

void Dragengine.Scenery.ECPOcclusionMesh.finishedLoading ( String path,
ResourceLoaderType resourceType,
Object resource )

Resource has finished loading.

Implements Dragengine.ResourceListener.

References getPath().

Referenced by getOcclusionMesh().

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPOcclusionMesh.getHasPreloaded ( )

Property has been preloaded.

References getOcclusionMesh().

Referenced by copyValue().

◆ getOcclusionMesh() [1/2]

OcclusionMesh Dragengine.Scenery.ECPOcclusionMesh.getOcclusionMesh ( )

Occlusion mesh resource or null if not present.

References setPath().

Referenced by getHasPreloaded(), and getOcclusionMesh().

◆ getOcclusionMesh() [2/2]

OcclusionMesh Dragengine.Scenery.ECPOcclusionMesh.getOcclusionMesh ( StubWithProperties stub,
ElementClass eclass )

OcclusionMesh modified by stub property if present.

If named stub property is not present or empty string the stored occlusionMesh is returned. If the named stub property is present it is loaded as occlusionMesh resource.

References failedLoading(), finishedLoading(), getOcclusionMesh(), logPreloadProblems(), and new().

◆ getPath()

String Dragengine.Scenery.ECPOcclusionMesh.getPath ( )

Path to occlusion mesh resource.

Referenced by finishedLoading(), and setPath().

◆ logPreloadProblems()

bool Dragengine.Scenery.ECPOcclusionMesh.logPreloadProblems ( ElementClass elementClass,
Console console )

Log preloading problems.

Returns
True if problems are present.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References copyValue().

Referenced by getOcclusionMesh().

◆ new() [1/2]

ECPOcclusionMesh Dragengine.Scenery.ECPOcclusionMesh.new ( String name)

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References new().

Referenced by getOcclusionMesh(), new(), and new().

◆ new() [2/2]

ECPOcclusionMesh Dragengine.Scenery.ECPOcclusionMesh.new ( String name,
String path )

Create property with initial path.

References new().

◆ preloadResources()

void Dragengine.Scenery.ECPOcclusionMesh.preloadResources ( ElementClass elementClass,
PreloadCounter counter )

Preload resources if supported.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setValue().

Referenced by failedLoading().

◆ setOcclusionMesh()

void Dragengine.Scenery.ECPOcclusionMesh.setOcclusionMesh ( OcclusionMesh occlusionMesh)

Set occlusion mesh resource or null if not present.

Referenced by setValue().

◆ setPath()

void Dragengine.Scenery.ECPOcclusionMesh.setPath ( String path)

Set path to occlusion mesh resource.

References getPath().

Referenced by getOcclusionMesh().

◆ setValue()

void Dragengine.Scenery.ECPOcclusionMesh.setValue ( Object value)

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setOcclusionMesh().

Referenced by preloadResources().


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