|
NWengine 0.9
|
Base class for serialization and deserialization. More...
#include <Serialization.h>
Public Member Functions | |
| Serialized () | |
| Default constructor for Serialized class. | |
| virtual int | Serialize (std::fstream *data, int offset) |
| Serialize the object and write it to the file. | |
| virtual int | Deserialize (std::fstream *data, int offset) |
| Deserialize the object from the file. | |
Base class for serialization and deserialization.
Deserialize the object from the file.
| data | The file stream to read the serialized data from. |
| offset | The offset in the file to start reading the serialized data. |
Reimplemented in GameObject, AudioEmitter, AudioListener, Collider, ParticleSystem, Script, Sprite, Text, Transform, Camera, Interpolator, and BezierInterpolator.
Serialize the object and write it to the file.
| data | The file stream to write the serialized data to. |
| offset | The offset in the file to start writing the serialized data. |
Reimplemented in GameObject, AudioEmitter, AudioListener, Collider, ParticleSystem, Script, Sprite, Text, Transform, Camera, Interpolator, and BezierInterpolator.