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

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

Inheritance diagram for Dragengine.Scenery.ECPVideo:
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.
String getPath ()
 Path to video resource.
Video getVideo ()
 Video resource or null if not present.
Video getVideo (StubWithProperties stub, ElementClass eclass)
 Video modified by stub property if present.
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems.
ECPVideo new (String name)
 Create property.
ECPVideo new (String name, String path)
 Create property with initial path.
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported.
void setPath (String path)
 Set path to video resource.
void setValue (Object value)
 Set value of property from XML decoded value.
void setVideo (Video video)
 Set video resource or null if not present.
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

Video resource element class property for use with XML loading.

Video 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.ECPVideo.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.ECPVideo.failedLoading ( String filename,
ResourceLoaderType resourceType )

Resource failed loading.

Implements Dragengine.ResourceListener.

References preloadResources().

Referenced by getVideo().

◆ finishedLoading()

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

Resource has finished loading.

Implements Dragengine.ResourceListener.

References getPath().

Referenced by getVideo().

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPVideo.getHasPreloaded ( )

Property has been preloaded.

References getVideo().

Referenced by copyValue().

◆ getPath()

String Dragengine.Scenery.ECPVideo.getPath ( )

Path to video resource.

Referenced by finishedLoading(), and setPath().

◆ getVideo() [1/2]

Video Dragengine.Scenery.ECPVideo.getVideo ( )

Video resource or null if not present.

References setPath().

Referenced by getHasPreloaded(), and getVideo().

◆ getVideo() [2/2]

Video Dragengine.Scenery.ECPVideo.getVideo ( StubWithProperties stub,
ElementClass eclass )

Video modified by stub property if present.

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

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

◆ logPreloadProblems()

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

Log preloading problems.

Returns
True if problems are present.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References copyValue().

Referenced by getVideo().

◆ new() [1/2]

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References new().

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

◆ new() [2/2]

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

Create property with initial path.

References new().

◆ preloadResources()

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

Preload resources if supported.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setValue().

Referenced by failedLoading().

◆ setPath()

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

Set path to video resource.

References getPath().

Referenced by getVideo().

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setVideo().

Referenced by preloadResources().

◆ setVideo()

void Dragengine.Scenery.ECPVideo.setVideo ( Video video)

Set video resource or null if not present.

Referenced by setValue().


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