|
Drag[en]gine Script Module DragonScript 1.32.1
|
World stub element class property for use with XML loading. More...
Public Member Functions | |
| void | copyValue (ElementClass elementClass, ElementClassProperty property) |
| void | dispose () |
| Dispose of element class property to break reference loops. | |
| bool | getHasPreloaded () |
| Property has been preloaded. | |
| LoadWorld | getLoader () |
| World loader. | |
| String | getPath () |
| Path to world. | |
| StubGameWorld | getWorldStub () |
| World stub or null if not present. | |
| StubGameWorld | getWorldStub (StubWithProperties stub, ElementClass eclass) |
| World stub modified by stub property if present. | |
| bool | logPreloadProblems (ElementClass elementClass, Console console) |
| Log preloading problems. | |
| ECPWorld | new (String name, LoadWorld loader) |
| Create property. | |
| ECPWorld | new (String name, LoadWorld loader, String path) |
| Create property with initial path. | |
| void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
| Preload resources if supported. | |
| void | setPath (String path) |
| Set path to world. | |
| void | setValue (Object value) |
| Set value of property from XML decoded value. | |
| void | setWorldStub (StubGameWorld stub) |
| Set world stub or null if not present. | |
Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty | |
| String | getName () |
| Name. | |
| ElementClassProperty | new (String name) |
| Create property. | |
Public Attributes | |
| bool | pHasPreloaded |
| LoadWorld | pLoader |
| String | pPath |
| StubGameWorld | pWorldStub |
World stub element class property for use with XML loading.
World stub is set from XML using a path. Loads the world stub during preloading. The value of the property is then the loaded StubGameWorld. If loading fails null is stored.
| void Dragengine.Scenery.ECPWorld.copyValue | ( | ElementClass | elementClass, |
| ElementClassProperty | property | ||
| ) |
| void Dragengine.Scenery.ECPWorld.dispose | ( | ) |
Dispose of element class property to break reference loops.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
| bool Dragengine.Scenery.ECPWorld.getHasPreloaded | ( | ) |
Property has been preloaded.
| LoadWorld Dragengine.Scenery.ECPWorld.getLoader | ( | ) |
World loader.
| String Dragengine.Scenery.ECPWorld.getPath | ( | ) |
Path to world.
| StubGameWorld Dragengine.Scenery.ECPWorld.getWorldStub | ( | ) |
World stub or null if not present.
| StubGameWorld Dragengine.Scenery.ECPWorld.getWorldStub | ( | StubWithProperties | stub, |
| ElementClass | eclass | ||
| ) |
World stub modified by stub property if present.
If named stub property is not present or empty string the stored world stub is returned. If the named stub property is present it is loaded as world stub.
References Dragengine.Scenery.logPreloadProblems().
| bool Dragengine.Scenery.ECPWorld.logPreloadProblems | ( | ElementClass | elementClass, |
| Console | console | ||
| ) |
Log preloading problems.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
| ECPWorld Dragengine.Scenery.ECPWorld.new | ( | String | name, |
| LoadWorld | loader | ||
| ) |
Create property.
| ECPWorld Dragengine.Scenery.ECPWorld.new | ( | String | name, |
| LoadWorld | loader, | ||
| String | path | ||
| ) |
Create property with initial path.
| void Dragengine.Scenery.ECPWorld.preloadResources | ( | ElementClass | elementClass, |
| PreloadCounter | counter | ||
| ) |
Preload resources if supported.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
| void Dragengine.Scenery.ECPWorld.setPath | ( | String | path | ) |
Set path to world.
| void Dragengine.Scenery.ECPWorld.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
| void Dragengine.Scenery.ECPWorld.setWorldStub | ( | StubGameWorld | stub | ) |
Set world stub or null if not present.
| bool Dragengine.Scenery.ECPWorld.pHasPreloaded |
| LoadWorld Dragengine.Scenery.ECPWorld.pLoader |
| String Dragengine.Scenery.ECPWorld.pPath |
| StubGameWorld Dragengine.Scenery.ECPWorld.pWorldStub |