[ Package Index | Mudlib Index | Effect Index ]

File /obj/cont_save.c

A container that will save it's contents in a nice happy way. The container will not allow stuff in or out until it has finished loading.

Written by Ceres


Inherits

This class inherits the following classes /obj/baggage.c

Method index

 o can_find_match_recurse_into(object)
 o do_load(object)
Loads the data for the saved container from the save file.
 o do_save()
This method saves the data to the save file.
 o query_can_recurse()
 o query_save_file()
This method returns the current save file for the object.
 o set_can_recurse(int)
 o set_save_file(string, object)
This method sets the save file for the item and then does a load.

Public Functions

These are functions that everyone can access.

.
 * can_find_match_recurse_into
int can_find_match_recurse_into(object looker)
 * do_load
varargs void do_load(object thing)
Loads the data for the saved container from the save file.

Parameters:
thing - the person to report errors to
 * do_save
void do_save()
This method saves the data to the save file.

 * query_can_recurse
int query_can_recurse()
 * query_save_file
string query_save_file()
This method returns the current save file for the object.

Returns:
the current save file
 * set_can_recurse
void set_can_recurse(int recurse_flag)
 * set_save_file
varargs void set_save_file(string file,
                           object thing)
This method sets the save file for the item and then does a load.

Parameters:
file - the file name to set the save object to
thing - the thing to set as the person to report errors to

Discworld MUD's distribution world wide web pages.
brought to you by
Cut Me Own Throat Dibbler's Sensational Sausages; buy one while they are hot.
File last modified: Thu, 18 Sep 2003 18:07:52 GMT

Lost? Try Discworld's home page.