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

Dictionary of sounds element class property for use with XML loading. More...

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

Public Member Functions

void dispose ()
 Dispose of element class property to break reference loops.
void forEach (Block ablock)
 Visit sounds with block with String id and Sound value.
Sound getAt (String id)
 Sound with identifier or null if absent.
int getCount ()
 Number of sounds.
bool getHasPreloaded ()
 Property has been preloaded.
ECPSoundMap new (String name)
 Create property.
void removeAll ()
 Remove all sounds.
void removeAllPath ()
 Remove all path.
void setAt (String id, Sound sound)
 Set sound for identifier.
void setPathAt (String id, String path)
 Set path to load for identifier.
void setValue (Object value)
 Set value of property from XML decoded value.
Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty
String getName ()
 Name.
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems.
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported.
Public Member Functions inherited from Dragengine.ResourceListener
void finishedLoading (String filename, ResourceLoaderType resourceType, Object resource)
 Resource finished loading successfully.
void failedLoading (String filename, ResourceLoaderType resourceType)
 Resource failed loading.

Public Attributes

PreloadCounter pCounter
Array pFailedLoading
bool pHasPreloaded
Dictionary pPath

Detailed Description

Dictionary of sounds element class property for use with XML loading.

Version
1.35

Similar to ECPSound but assigns each sound a unique name. This is useful to define a list of sounds to use mapped against well known identifiers. Also allows to map the same sound to multiple unique identifiers if required.

Member Function Documentation

◆ dispose()

void Dragengine.Scenery.ECPSoundMap.dispose ( )

Dispose of element class property to break reference loops.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References dispose(), and new().

Referenced by dispose().

◆ forEach()

void Dragengine.Scenery.ECPSoundMap.forEach ( Block ablock)

Visit sounds with block with String id and Sound value.

Referenced by setValue().

◆ getAt()

Sound Dragengine.Scenery.ECPSoundMap.getAt ( String id)

Sound with identifier or null if absent.

References pPath, setAt(), and setPathAt().

Referenced by getHasPreloaded(), and setAt().

◆ getCount()

int Dragengine.Scenery.ECPSoundMap.getCount ( )

Number of sounds.

Referenced by removeAll().

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPSoundMap.getHasPreloaded ( )

Property has been preloaded.

References getAt().

Referenced by setValue().

◆ new()

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References new(), and pPath.

Referenced by dispose(), new(), and setValue().

◆ removeAll()

void Dragengine.Scenery.ECPSoundMap.removeAll ( )

Remove all sounds.

References getCount().

Referenced by setPathAt(), and setValue().

◆ removeAllPath()

void Dragengine.Scenery.ECPSoundMap.removeAllPath ( )

Remove all path.

Referenced by setPathAt().

◆ setAt()

void Dragengine.Scenery.ECPSoundMap.setAt ( String id,
Sound sound )

Set sound for identifier.

References getAt().

Referenced by getAt(), and setValue().

◆ setPathAt()

void Dragengine.Scenery.ECPSoundMap.setPathAt ( String id,
String path )

Set path to load for identifier.

References pPath, removeAll(), and removeAllPath().

Referenced by getAt().

◆ setValue()

Member Data Documentation

◆ pCounter

PreloadCounter Dragengine.Scenery.ECPSoundMap.pCounter

Referenced by setValue().

◆ pFailedLoading

Array Dragengine.Scenery.ECPSoundMap.pFailedLoading

Referenced by setValue().

◆ pHasPreloaded

bool Dragengine.Scenery.ECPSoundMap.pHasPreloaded

Referenced by setValue().

◆ pPath

Dictionary Dragengine.Scenery.ECPSoundMap.pPath

Referenced by getAt(), new(), setPathAt(), and setValue().


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