Planeshift
Public Types | Public Member Functions | Public Attributes

psSaveCharEvent Class Reference

This is an event that schedules regular saving of character data. More...

#include <pscharacterloader.h>

List of all members.

Public Types

enum  Type { SAVE_PERIOD = 600000 }

Public Member Functions

virtual void DeleteObjectCallback (iDeleteNotificationObject *object)
 This is called when the client we were tracking has logged out and this mesage is no longer required.
 psSaveCharEvent (gemActor *actor)
 The GEM object want to save data with.
virtual void Trigger ()
 Trigger this message and re-insert it back into queue.
 ~psSaveCharEvent ()
 Destory Message.

Public Attributes

gemActor * actor

Detailed Description

This is an event that schedules regular saving of character data.

This is done to allow some preservation of character data on a server crash. When a player logs in this event is pushed into the queue with a default delay. When this message triggers it will re-add itself to the queue until the player logs out.

Definition at line 239 of file pscharacterloader.h.


Member Enumeration Documentation

Enumerator:
SAVE_PERIOD 

Definition at line 242 of file pscharacterloader.h.


Constructor & Destructor Documentation

psSaveCharEvent::psSaveCharEvent ( gemActor *  actor)

The GEM object want to save data with.

Construct the message.

Parameters:
actorThe actor that has the character that we want to save.
psSaveCharEvent::~psSaveCharEvent ( )

Destory Message.


Member Function Documentation

virtual void psSaveCharEvent::DeleteObjectCallback ( iDeleteNotificationObject *  object) [virtual]

This is called when the client we were tracking has logged out and this mesage is no longer required.

Parameters:
objectThe gem object that we had registered to.

Implements iDeleteObjectCallback.

virtual void psSaveCharEvent::Trigger ( ) [virtual]

Trigger this message and re-insert it back into queue.

Implements psGameEvent.


Member Data Documentation

Definition at line 247 of file pscharacterloader.h.


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