NWengine 0.9
Loading...
Searching...
No Matches
Serialized Class Reference

Base class for serialization and deserialization. More...

#include <Serialization.h>

Inheritance diagram for Serialized:
GameComponent GameObject Interpolator Animator AudioEmitter AudioListener Camera Collider ParticleSystem Script Sprite Text Transform BezierInterpolator

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.
 

Detailed Description

Base class for serialization and deserialization.

Member Function Documentation

◆ Deserialize()

virtual int Serialized::Deserialize ( std::fstream * data,
int offset )
inlinevirtual

Deserialize the object from the file.

Parameters
dataThe file stream to read the serialized data from.
offsetThe offset in the file to start reading the serialized data.
Returns
The number of bytes read from the file, or -1 if an error occurred.

Reimplemented in GameObject, AudioEmitter, AudioListener, Collider, ParticleSystem, Script, Sprite, Text, Transform, Camera, Interpolator, and BezierInterpolator.

◆ Serialize()

virtual int Serialized::Serialize ( std::fstream * data,
int offset )
inlinevirtual

Serialize the object and write it to the file.

Parameters
dataThe file stream to write the serialized data to.
offsetThe offset in the file to start writing the serialized data.
Returns
The number of bytes written to the file, or -1 if an error occurred.

Reimplemented in GameObject, AudioEmitter, AudioListener, Collider, ParticleSystem, Script, Sprite, Text, Transform, Camera, Interpolator, and BezierInterpolator.


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