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

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

Inheritance diagram for Dragengine.Scenery.ECPAnnouncer:
Dragengine.Scenery.ElementClassProperty Dragengine.Preloading.PreloadListener

Public Member Functions

void copyValue (ElementClass elementClass, ElementClassProperty property)
 Copy value from another element class property of the same type.
Announcer getAnnouncer ()
 Announcer or null if not present.
Announcer getAnnouncer (StubWithProperties stub, ElementClass eclass)
 Announcer modified by stub property if present.
bool getHasPreloaded ()
 Property has been preloaded.
LoadAnnouncer getLoader ()
 Announcer loader.
String getPath ()
 Path to announcer.
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems.
ECPAnnouncer new (String name, LoadAnnouncer loader)
 Create property.
ECPAnnouncer new (String name, LoadAnnouncer loader, String path)
 Create property with initial path.
void preloadingFinished (Preloader preloader, bool success)
 Preloading of all resources finished.
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported.
void resourcesFinished (Preloader preloader)
 One or more resources finished preloading but not all yet.
void setAnnouncer (Announcer announcer)
 Set announcer or null if not present.
void setPath (String path)
 Set path to announcer.
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

Announcer pAnnouncer
Exception pException
bool pFailed
bool pHasPreloaded
LoadAnnouncer pLoader
String pPath

Detailed Description

Announcer element class property for use with XML loading.

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

Member Function Documentation

◆ copyValue()

void Dragengine.Scenery.ECPAnnouncer.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 resourcesFinished().

◆ getAnnouncer() [1/2]

Announcer Dragengine.Scenery.ECPAnnouncer.getAnnouncer ( )

Announcer or null if not present.

References getPath(), and pPath.

Referenced by getAnnouncer(), and getHasPreloaded().

◆ getAnnouncer() [2/2]

Announcer Dragengine.Scenery.ECPAnnouncer.getAnnouncer ( StubWithProperties stub,
ElementClass eclass )

Announcer modified by stub property if present.

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

References getAnnouncer(), getPath(), logPreloadProblems(), new(), pAnnouncer, pException, pFailed, pHasPreloaded, pLoader, pPath, preloadingFinished(), and resourcesFinished().

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPAnnouncer.getHasPreloaded ( )

Property has been preloaded.

References getAnnouncer(), and pPath.

Referenced by copyValue().

◆ getLoader()

LoadAnnouncer Dragengine.Scenery.ECPAnnouncer.getLoader ( )

Announcer loader.

Referenced by getPath().

◆ getPath()

String Dragengine.Scenery.ECPAnnouncer.getPath ( )

Path to announcer.

References getLoader(), and pLoader.

Referenced by getAnnouncer(), getAnnouncer(), and preloadingFinished().

◆ logPreloadProblems()

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

Log preloading problems.

Returns
True if problems are present.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References pPath.

Referenced by getAnnouncer().

◆ new() [1/2]

ECPAnnouncer Dragengine.Scenery.ECPAnnouncer.new ( String name,
LoadAnnouncer loader )

Create property.

References new().

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

◆ new() [2/2]

ECPAnnouncer Dragengine.Scenery.ECPAnnouncer.new ( String name,
LoadAnnouncer loader,
String path )

Create property with initial path.

References new(), pLoader, and pPath.

◆ preloadingFinished()

void Dragengine.Scenery.ECPAnnouncer.preloadingFinished ( Preloader preloader,
bool success )

Preloading of all resources finished.

Implements Dragengine.Preloading.PreloadListener.

References getPath(), pPath, and preloadResources().

Referenced by getAnnouncer().

◆ preloadResources()

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

Preload resources if supported.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setValue().

Referenced by preloadingFinished().

◆ resourcesFinished()

void Dragengine.Scenery.ECPAnnouncer.resourcesFinished ( Preloader preloader)

One or more resources finished preloading but not all yet.

Implements Dragengine.Preloading.PreloadListener.

References copyValue().

Referenced by getAnnouncer().

◆ setAnnouncer()

void Dragengine.Scenery.ECPAnnouncer.setAnnouncer ( Announcer announcer)

Set announcer or null if not present.

References setPath().

Referenced by setValue().

◆ setPath()

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

Set path to announcer.

Referenced by setAnnouncer().

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References pAnnouncer, and setAnnouncer().

Referenced by preloadResources().

Member Data Documentation

◆ pAnnouncer

Announcer Dragengine.Scenery.ECPAnnouncer.pAnnouncer

Referenced by getAnnouncer(), and setValue().

◆ pException

Exception Dragengine.Scenery.ECPAnnouncer.pException

Referenced by getAnnouncer().

◆ pFailed

bool Dragengine.Scenery.ECPAnnouncer.pFailed

Referenced by getAnnouncer().

◆ pHasPreloaded

bool Dragengine.Scenery.ECPAnnouncer.pHasPreloaded

Referenced by copyValue(), and getAnnouncer().

◆ pLoader

LoadAnnouncer Dragengine.Scenery.ECPAnnouncer.pLoader

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

◆ pPath

String Dragengine.Scenery.ECPAnnouncer.pPath

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