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

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

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

Public Member Functions

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

Detailed Description

Conversation element class property for use with XML loading.

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

Member Function Documentation

◆ copyValue()

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

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

Version
1.17

References getHasPreloaded().

Referenced by logPreloadProblems().

◆ getConversation() [1/2]

Conversation Dragengine.Scenery.ECPConversation.getConversation ( )

Conversation or null if not present.

References getPath().

Referenced by getConversation(), and getHasPreloaded().

◆ getConversation() [2/2]

Conversation Dragengine.Scenery.ECPConversation.getConversation ( StubWithProperties stub,
ElementClass eclass )

Conversation modified by stub property if present.

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

References getConversation(), getPath(), logPreloadProblems(), new(), and preloadResources().

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPConversation.getHasPreloaded ( )

Property has been preloaded.

References getConversation().

Referenced by copyValue().

◆ getLoader()

LoadConversation Dragengine.Scenery.ECPConversation.getLoader ( )

Conversation loader.

Referenced by getPath().

◆ getPath()

String Dragengine.Scenery.ECPConversation.getPath ( )

Path to conversation.

References getLoader().

Referenced by getConversation(), and getConversation().

◆ logPreloadProblems()

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

Log preloading problems.

Returns
True if problems are present.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References copyValue().

Referenced by getConversation().

◆ new() [1/2]

ECPConversation Dragengine.Scenery.ECPConversation.new ( String name,
LoadConversation loader )

Create property.

References new().

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

◆ new() [2/2]

ECPConversation Dragengine.Scenery.ECPConversation.new ( String name,
LoadConversation loader,
String path )

Create property with initial path.

References new().

◆ preloadResources()

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

Preload resources if supported.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setValue().

Referenced by getConversation().

◆ setConversation()

void Dragengine.Scenery.ECPConversation.setConversation ( Conversation conversation)

Set conversation or null if not present.

References setPath().

Referenced by setValue().

◆ setPath()

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

Set path to conversation.

Referenced by setConversation().

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setConversation().

Referenced by preloadResources().


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