f-990203-25
ldmud-3.2.9/src/done/f-990203-25 · 818 B
From the archive ldmud-329.tar.gz
Download the archive « Back to the archive contents
Short: Change efuns {save,restore}_object()
From: Matthew Julius <julius.2@wright.edu>
Date: Fri, 08 Jan 1999 16:29:08 -0500
Type: Feature
State: Done - implemented in 3.2.8-dev.150
string|void save_object(int|string)
If the argument is an integer (!0), instead of writing to a file, return
the data as a string. This allows the current state of an object to be
saved without hitting the filesystem. Also, save_object() should not
save variables with a value of 0.
void restore_object(string)
Similar to save_object(), but the argument can be a filename, or the
string returned by save_object(). That is, a filename will not start
with "#0:0...", or whatever the current version of save_object() may be.
Again, this allows the state of an object to be restored without a hit
to the filesystem.