newspeoplefor developersdocumentationdownloads

nPersistServer Script Interface

npersistserver:

Super Class:

C++ Class:

Info

The nPersistServer object can be found under /sys/servers/persist and offers some commands to influence the way how objects are saved. All load/save operations of objects run finally through the persis server. That's all you need to know about it...

Commands:


setsavelevel

Command Input:
i (SaveLevel)
Command Output:
v
Command Description:
Set the save level which filters commands to be saved. The default save level of 0 will let all commands through, a save level of 1 will only let commands with a level of 1 or greater through.
This is useful for selectively saving a set of object attributes without having to write several save routines (savegames are an example).


getsavelevel

Command Input:
v
Command Output:
i (SaveLevel)
Command Description:
Get the current save level.

setsaverclass

Command Input:
s(SaverClass)
Command Output:
v
Command Description:
Set name of nScriptServer derived class which should be used for saving objects.

getsaverclass

Command Input:
v
Command Output:
s(SaverClass)
Command Description:
Get class name of saver nScriptServer.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.