Drag[en]gine Script Module DragonScript 1.23
Loading...
Searching...
No Matches
Dragengine.LoadSave.Persistable Interface Reference

Interface usable with PersistencyEnvironment. More...

Public Member Functions

String persistencyFactoryName ()
 Name of PersistencyFactory required to load object from file.
 
void writeObjectToFile (PersistencyEnvironment env, FileWriter writer)
 Write object to file writer.
 

Detailed Description

Interface usable with PersistencyEnvironment.

Member Function Documentation

◆ persistencyFactoryName()

String Dragengine.LoadSave.Persistable.persistencyFactoryName ( )

Name of PersistencyFactory required to load object from file.

Name of PersistencyFactory is first written to the file as string with 8-bit length. Then writeToFile() is called to write the object itself. Empty name is not allowed as is names longer than 255 characters. Name has to match a PersistencyFactory present in the Persistency instance used for loading objects. Object is read using PersistencyFactory.readObjectFromFile() of the matching PersistencyFactory.

◆ writeObjectToFile()

void Dragengine.LoadSave.Persistable.writeObjectToFile ( PersistencyEnvironment  env,
FileWriter  writer 
)

Write object to file writer.


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