Planeshift
|
This is an event that schedules regular saving of character data. More...
#include <pscharacterloader.h>
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 |
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.
Definition at line 242 of file pscharacterloader.h.
psSaveCharEvent::psSaveCharEvent | ( | gemActor * | actor | ) |
The GEM object want to save data with.
Construct the message.
actor | The actor that has the character that we want to save. |
psSaveCharEvent::~psSaveCharEvent | ( | ) |
Destory Message.
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.
object | The 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.
Definition at line 247 of file pscharacterloader.h.