Drag[en]gine Script Module DragonScript  1.23
Dragengine.Preloading.StubElementClassNotFound Class Reference

Stub for an element with unknown object class. More...

Inheritance diagram for Dragengine.Preloading.StubElementClassNotFound:
Dragengine.Preloading.StubElement Dragengine.Preloading.StubWithProperties

Public Member Functions

void createAndAddElement (GameWorld gameWorld)
 Always throws an exception. More...
 
Element createElement ()
 Always throws an exception. More...
 
void loadAndAddElement (PersistencyEnvironment env, FileReader reader, GameWorld gameWorld)
 Always throws an exception. More...
 
Element loadElement (PersistencyEnvironment env, FileReader reader)
 Always throws an exception. More...
 
StubElementClassNotFound new (String eclassName)
 Create element stub. More...
 
StubElementClassNotFound new (String eclassName, UniqueID id)
 Create element stub. More...
 
StubElementClassNotFound new (String eclassName, UniqueID id, StubWithProperties properties)
 Create element stub. More...
 
StubElementClassNotFound new (StubElement stub)
 Create copy of element stub. More...
 
bool verifyPreloading (Console console)
 Verify if a resource failed preloading and print the problems to the console. More...
 
void writeToFile (FileWriter writer)
 Always throws an exception. More...
 
- Public Member Functions inherited from Dragengine.Preloading.StubElement
void forEachTexture (Block ablock)
 Visit textures with a block. More...
 
UniqueID getAttachTo ()
 Identifier of object to attach to once added to a game world. More...
 
Connection getConnection ()
 Connection to server or or null. More...
 
bool getEnableNetworking ()
 Enable networking for this stub. More...
 
UniqueID getID ()
 Unique identifier of object. More...
 
DMatrix getMatrix ()
 Stub matrix. More...
 
NetworkState getNetworkState ()
 Network state provided by server or null. More...
 
DVector getPosition ()
 Position. More...
 
Vector getRotation ()
 Rotation. More...
 
Vector getScaling ()
 Scaling if sizable. More...
 
StubElementTexture getTextureAt (int index)
 Texture at index. More...
 
int getTextureCount ()
 Number of textures. More...
 
StubElementTexture getTextureNamed (String name)
 Named texture or null if not found. More...
 
StubElement new (ElementClass eclass)
 Create element stub. More...
 
StubElement new (ElementClass eclass, UniqueID id)
 Create element stub. More...
 
StubElement new (ElementClass eclass, UniqueID id, StubWithProperties properties)
 Create element stub. More...
 
void preloadResources ()
 Preload resources. More...
 
void removeAllTextures ()
 Remove all textures. More...
 
void removeTexture (StubElementTexture texture)
 Remove texture. More...
 
void setAttachTo (UniqueID id)
 Set dentifier of object to attach to once added to a game world. More...
 
void setClass (ElementClass elementClass)
 Set element class. More...
 
void setConnection (Connection connection)
 Set connection to server or null. More...
 
void setEnableNetworking (bool enable)
 Set if networking is enabled for this stub. More...
 
void setID (UniqueID id)
 Set unique identifier of object. More...
 
void setNetworkState (NetworkState networkState)
 Set network state provided by server or null. More...
 
void setPosition (DVector position)
 Set position. More...
 
void setRotation (Vector rotation)
 Set rotation. More...
 
void setScaling (Vector scaling)
 Set scaling if sizable. More...
 
- Public Member Functions inherited from Dragengine.Preloading.StubWithProperties
Dictionary getProperties ()
 Copy of all properties as dictionary mapping String key to String value. More...
 
bool getPropertyBoolFor (String key, bool default)
 Boolean property value or default value if absent. More...
 
int getPropertyCount ()
 Number of properties. More...
 
float getPropertyFloatFor (String key, float default)
 Floating point property value or default value if absent. More...
 
int getPropertyIntFor (String key, int default)
 Integer property value or default value if absent. More...
 
Array getPropertyKeys ()
 Property keys (String array). More...
 
String getPropertyValueFor (String key, String default)
 Value of property or default value if absent. More...
 
bool hasPropertyWithKey (String key)
 Property key is present. More...
 
StubWithProperties new ()
 Create stub with properties. More...
 
StubWithProperties new (StubWithProperties stub)
 Create copy of stub with properties. More...
 
void readPropertiesFromFile (FileReader reader)
 Read properties from file. More...
 
void removeAllProperties ()
 Remove all properties. More...
 
void removePropertyWithKey (String key)
 Remove property if present. More...
 
void setFrom (Dictionary properties)
 Set all properties from dictionary mapping String key to String value. More...
 
void setFrom (StubWithProperties properties)
 Set properties from another StubWithProperties. More...
 
void setPropertyBoolFor (String key, bool value)
 Set property. More...
 
void setPropertyFloatFor (String key, float value)
 Set property. More...
 
void setPropertyIntFor (String key, int value)
 Set property. More...
 
void setPropertyValueFor (String key, String value)
 Set property. More...
 
void writePropertiesToFile (FileWriter writer)
 Write properties to file. More...
 

Static Public Member Functions

static StubElement readFromFile (FileReader reader, ElementClassList ElementClassList)
 Always throws an exception. More...
 

Additional Inherited Members

- Public Attributes inherited from Dragengine.Preloading.StubElement
UniqueID pAttachTo
 
ElementClass pClass
 
Connection pConnection
 
PreloadCounter pCounter
 
bool pEnableNetworking
 
UniqueID pID
 
DMatrix pMatrix
 
NetworkState pNetworkState
 
DVector pPosition
 
Vector pRotation
 
Vector pScaling
 
Array pTextures
 
- Public Attributes inherited from Dragengine.Preloading.StubWithProperties
Dictionary pProperties
 Properties. More...
 

Detailed Description

Stub for an element with unknown object class.

Used during asynchronous loading to keep track of missing element classes so they can be reported all at once instead of only the first one encountered.

Extends StubElement.verifyPreloading() to log the problem. All attempts to create the element will thrown an exception. The missing element class is temporarily created and stored only in the stub for error printing.

Member Function Documentation

◆ createAndAddElement()

void Dragengine.Preloading.StubElementClassNotFound.createAndAddElement ( GameWorld  gameWorld)

Always throws an exception.

Reimplemented from Dragengine.Preloading.StubElement.

◆ createElement()

Element Dragengine.Preloading.StubElementClassNotFound.createElement ( )

Always throws an exception.

◆ loadAndAddElement()

void Dragengine.Preloading.StubElementClassNotFound.loadAndAddElement ( PersistencyEnvironment  env,
FileReader  reader,
GameWorld  gameWorld 
)

Always throws an exception.

Reimplemented from Dragengine.Preloading.StubElement.

◆ loadElement()

Element Dragengine.Preloading.StubElementClassNotFound.loadElement ( PersistencyEnvironment  env,
FileReader  reader 
)

Always throws an exception.

Reimplemented from Dragengine.Preloading.StubElement.

◆ new() [1/4]

StubElementClassNotFound Dragengine.Preloading.StubElementClassNotFound.new ( String  eclassName)

Create element stub.

◆ new() [2/4]

StubElementClassNotFound Dragengine.Preloading.StubElementClassNotFound.new ( String  eclassName,
UniqueID  id 
)

Create element stub.

◆ new() [3/4]

StubElementClassNotFound Dragengine.Preloading.StubElementClassNotFound.new ( String  eclassName,
UniqueID  id,
StubWithProperties  properties 
)

Create element stub.

◆ new() [4/4]

StubElementClassNotFound Dragengine.Preloading.StubElementClassNotFound.new ( StubElement  stub)

Create copy of element stub.

Reimplemented from Dragengine.Preloading.StubElement.

◆ readFromFile()

static StubElement Dragengine.Preloading.StubElementClassNotFound.readFromFile ( FileReader  reader,
ElementClassList  ElementClassList 
)
static

Always throws an exception.

Reimplemented from Dragengine.Preloading.StubElement.

◆ verifyPreloading()

bool Dragengine.Preloading.StubElementClassNotFound.verifyPreloading ( Console  console)

Verify if a resource failed preloading and print the problems to the console.

In addition to StubElement.verifyPreloading() logs the missing element class and always returns false.

◆ writeToFile()

void Dragengine.Preloading.StubElementClassNotFound.writeToFile ( FileWriter  writer)

Always throws an exception.

Reimplemented from Dragengine.Preloading.StubElement.


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