|
Drag[en]gine Script Module DragonScript 1.35
|
Conversation element class property for use with XML loading. More...
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. | |
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.
| void Dragengine.Scenery.ECPConversation.copyValue | ( | ElementClass | elementClass, |
| ElementClassProperty | property ) |
Copy value from another element class property of the same type.
References getHasPreloaded().
Referenced by logPreloadProblems().
| Conversation Dragengine.Scenery.ECPConversation.getConversation | ( | ) |
Conversation or null if not present.
References getPath().
Referenced by getConversation(), and getHasPreloaded().
| 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().
| bool Dragengine.Scenery.ECPConversation.getHasPreloaded | ( | ) |
| LoadConversation Dragengine.Scenery.ECPConversation.getLoader | ( | ) |
Conversation loader.
Referenced by getPath().
| String Dragengine.Scenery.ECPConversation.getPath | ( | ) |
Path to conversation.
References getLoader().
Referenced by getConversation(), and getConversation().
| bool Dragengine.Scenery.ECPConversation.logPreloadProblems | ( | ElementClass | elementClass, |
| Console | console ) |
Log preloading problems.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References copyValue().
Referenced by getConversation().
| ECPConversation Dragengine.Scenery.ECPConversation.new | ( | String | name, |
| LoadConversation | loader ) |
| ECPConversation Dragengine.Scenery.ECPConversation.new | ( | String | name, |
| LoadConversation | loader, | ||
| String | path ) |
Create property with initial path.
References new().
| void Dragengine.Scenery.ECPConversation.preloadResources | ( | ElementClass | elementClass, |
| PreloadCounter | counter ) |
Preload resources if supported.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References setValue().
Referenced by getConversation().
| void Dragengine.Scenery.ECPConversation.setConversation | ( | Conversation | conversation | ) |
| void Dragengine.Scenery.ECPConversation.setPath | ( | String | path | ) |
Set path to conversation.
Referenced by setConversation().
| 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().