#include <SaveGame.h>
Public Member Functions | |
int | GetSaveObjectId () |
virtual void | SaveToSaveData (iSaveData *apSaveData) |
virtual void | LoadFromSaveData (iSaveData *apSaveData) |
virtual iSaveData * | CreateSaveData ()=0 |
virtual void | SaveDataSetup (cSaveObjectHandler *apSaveObjectHandler, cGame *apGame) |
void | SetIsSaved (bool abX) |
bool | IsSaved () |
Protected Attributes | |
iSaveData * | mpSaveData |
This is class is inherited by object that are to be saved.
|
inline |
Get a unique id for this object.
|
virtual |
Save it's data to a SaveData
Reimplemented in hpl::iCharacterBody, hpl::iPhysicsBody, hpl::iPhysicsJoint, hpl::cMeshEntity, hpl::iPhysicsController, hpl::iLight3D, hpl::cAnimationState, hpl::cSubMeshEntity, hpl::cBillboard, hpl::iEntity3D, hpl::iParticleEmitter3D, hpl::cSoundEntity, hpl::cParticleSystem3D, hpl::iRenderable, hpl::cNode3D, hpl::cLight3DSpot, hpl::iEntity, hpl::iNode, hpl::iPhysicsJointSlider, hpl::iPhysicsJointScrew, hpl::iPhysicsJointBall, hpl::iPhysicsJointHinge, and hpl::cLight3DPoint.
|
virtual |
Load it's data from a SaveData
Reimplemented in hpl::iCharacterBody, hpl::iPhysicsBody, hpl::iPhysicsJoint, hpl::cMeshEntity, hpl::iPhysicsController, hpl::iLight3D, hpl::cAnimationState, hpl::cSubMeshEntity, hpl::cBillboard, hpl::iEntity3D, hpl::iParticleEmitter3D, hpl::cSoundEntity, hpl::cParticleSystem3D, hpl::iRenderable, hpl::cNode3D, hpl::cLight3DSpot, hpl::iEntity, hpl::iNode, hpl::iPhysicsJointSlider, hpl::iPhysicsJointScrew, hpl::iPhysicsJointBall, hpl::iPhysicsJointHinge, and hpl::cLight3DPoint.
|
pure virtual |
Creates the SaveData that this class uses.
Implemented in hpl::iCharacterBody, hpl::iPhysicsBody, hpl::iPhysicsJoint, hpl::cMeshEntity, hpl::iPhysicsController, hpl::iLight3D, hpl::cAnimationState, hpl::cSubMeshEntity, hpl::cBillboard, hpl::iEntity3D, hpl::iParticleEmitter3D, hpl::cSoundEntity, hpl::cParticleSystem3D, hpl::iRenderable, hpl::cNode3D, hpl::cLight3DSpot, hpl::iEntity, hpl::iNode, hpl::iPhysicsJointSlider, hpl::iPhysicsJointScrew, hpl::iPhysicsJointBall, hpl::iPhysicsJointHinge, and hpl::cLight3DPoint.
|
virtual |
After all objects have been created, this function is called to enable setup.
Reimplemented in hpl::iCharacterBody, hpl::iPhysicsBody, hpl::iPhysicsJoint, hpl::cMeshEntity, hpl::iPhysicsController, hpl::iLight3D, hpl::cAnimationState, hpl::cSubMeshEntity, hpl::cBillboard, hpl::iEntity3D, hpl::iParticleEmitter3D, hpl::cSoundEntity, hpl::cParticleSystem3D, hpl::iRenderable, hpl::cNode3D, hpl::cLight3DSpot, hpl::iEntity, hpl::iNode, hpl::iPhysicsJointSlider, hpl::iPhysicsJointScrew, hpl::iPhysicsJointBall, hpl::iPhysicsJointHinge, and hpl::cLight3DPoint.