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

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

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

Public Member Functions

void dispose ()
 Dispose of element class property to break reference loops.
void forEach (Block ablock)
 Visit videos with block with String id and Video value.
Video getAt (String id)
 Video with identifier or null if absent.
int getCount ()
 Number of videos.
bool getHasPreloaded ()
 Property has been preloaded.
ECPVideoMap new (String name)
 Create property.
void removeAll ()
 Remove all videos.
void removeAllPath ()
 Remove all path.
void setAt (String id, Video video)
 Set video 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 videos element class property for use with XML loading.

Version
1.35

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

Member Function Documentation

◆ dispose()

void Dragengine.Scenery.ECPVideoMap.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.ECPVideoMap.forEach ( Block ablock)

Visit videos with block with String id and Video value.

Referenced by setValue().

◆ getAt()

Video Dragengine.Scenery.ECPVideoMap.getAt ( String id)

Video with identifier or null if absent.

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

Referenced by getHasPreloaded(), and setAt().

◆ getCount()

int Dragengine.Scenery.ECPVideoMap.getCount ( )

Number of videos.

Referenced by removeAll().

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPVideoMap.getHasPreloaded ( )

Property has been preloaded.

References getAt().

Referenced by setValue().

◆ new()

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References new(), and pPath.

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

◆ removeAll()

void Dragengine.Scenery.ECPVideoMap.removeAll ( )

Remove all videos.

References getCount().

Referenced by setPathAt(), and setValue().

◆ removeAllPath()

void Dragengine.Scenery.ECPVideoMap.removeAllPath ( )

Remove all path.

Referenced by setPathAt().

◆ setAt()

void Dragengine.Scenery.ECPVideoMap.setAt ( String id,
Video video )

Set video for identifier.

References getAt().

Referenced by getAt(), and setValue().

◆ setPathAt()

void Dragengine.Scenery.ECPVideoMap.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.ECPVideoMap.pCounter

Referenced by setValue().

◆ pFailedLoading

Array Dragengine.Scenery.ECPVideoMap.pFailedLoading

Referenced by setValue().

◆ pHasPreloaded

bool Dragengine.Scenery.ECPVideoMap.pHasPreloaded

Referenced by setValue().

◆ pPath

Dictionary Dragengine.Scenery.ECPVideoMap.pPath

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


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