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

Sky element class property for use with XML loading. More...

Inheritance diagram for Dragengine.Scenery.ECPSky:
Dragengine.Scenery.ElementClassProperty

Public Member Functions

void copyValue (ElementClass elementClass, ElementClassProperty property)
 Copy value from another element class property of the same type.
bool getHasPreloaded ()
 Property has been preloaded.
LoadSky getLoader ()
 Sky loader.
String getPath ()
 Path to sky.
Sky getSky ()
 Sky or null if not present.
Sky getSky (StubWithProperties stub, ElementClass eclass)
 Sky modified by stub property if present.
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems.
ECPSky new (String name, LoadSky loader)
 Create property.
ECPSky new (String name, LoadSky loader, String path)
 Create property with initial path.
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported.
void setPath (String path)
 Set path to sky.
void setSky (Sky sky)
 Set sky or null if not present.
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.
ElementClassProperty new (String name)
 Create property.

Public Attributes

Exception pException
bool pHasPreloaded
LoadSky pLoader
String pPath
Sky pSky

Detailed Description

Sky element class property for use with XML loading.

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

Member Function Documentation

◆ copyValue()

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

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

Version
1.17

References getHasPreloaded(), and pHasPreloaded.

Referenced by logPreloadProblems().

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPSky.getHasPreloaded ( )

Property has been preloaded.

References getSky(), and pPath.

Referenced by copyValue().

◆ getLoader()

LoadSky Dragengine.Scenery.ECPSky.getLoader ( )

Sky loader.

Referenced by getPath().

◆ getPath()

String Dragengine.Scenery.ECPSky.getPath ( )

Path to sky.

References getLoader(), and pLoader.

Referenced by getSky(), and getSky().

◆ getSky() [1/2]

Sky Dragengine.Scenery.ECPSky.getSky ( )

Sky or null if not present.

References getPath(), and pPath.

Referenced by getHasPreloaded(), and getSky().

◆ getSky() [2/2]

Sky Dragengine.Scenery.ECPSky.getSky ( StubWithProperties stub,
ElementClass eclass )

Sky modified by stub property if present.

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

References getPath(), getSky(), logPreloadProblems(), new(), pException, pHasPreloaded, pLoader, pPath, preloadResources(), and pSky.

◆ logPreloadProblems()

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

Log preloading problems.

Returns
True if problems are present.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References copyValue(), and pPath.

Referenced by getSky().

◆ new() [1/2]

ECPSky Dragengine.Scenery.ECPSky.new ( String name,
LoadSky loader )

Create property.

References new().

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

◆ new() [2/2]

ECPSky Dragengine.Scenery.ECPSky.new ( String name,
LoadSky loader,
String path )

Create property with initial path.

References new(), pLoader, and pPath.

◆ preloadResources()

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

Preload resources if supported.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setValue().

Referenced by getSky().

◆ setPath()

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

Set path to sky.

Referenced by setSky().

◆ setSky()

void Dragengine.Scenery.ECPSky.setSky ( Sky sky)

Set sky or null if not present.

References setPath().

Referenced by setValue().

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References pSky, and setSky().

Referenced by preloadResources().

Member Data Documentation

◆ pException

Exception Dragengine.Scenery.ECPSky.pException

Referenced by getSky().

◆ pHasPreloaded

bool Dragengine.Scenery.ECPSky.pHasPreloaded

Referenced by copyValue(), and getSky().

◆ pLoader

LoadSky Dragengine.Scenery.ECPSky.pLoader

Referenced by getPath(), getSky(), and new().

◆ pPath

String Dragengine.Scenery.ECPSky.pPath

◆ pSky

Sky Dragengine.Scenery.ECPSky.pSky

Referenced by getSky(), and setValue().


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