Saveload(3)                                                        Saveload(3)



NNAAMMEE
       Saveload - Makes objects capable of saving and reloading when the mud
       reboots.

SSYYNNOOPPSSIISS
       Inherited by DDoooorr, Food [private], IInnvveenn, and TTrriinnkkeett.


   PPuubblliicc MMeetthhooddss
       nomask qquueerryy__uunniiqquuee__iidd ()
       string qquueerryy__ffuullll__iidd ()
       void llooaadd__sseellff (int id)
       void ssaavvee__tteemmppllaattee (string str)
       void llooaadd__tteemmppllaattee (string str)
       void ssaavvee__sseellff__oonnllyy ()
       string __ddeessttrruuccttoorr__ssaavveellooaadd ()

   PPuubblliicc AAttttrriibbuutteess
       string mmyy__ffiillee__nnaammee
       nosave int uunniiqquuee__iidd
       symbol ssaavvee__llooccaattiioonn

DDEETTAAIILLEEDD DDEESSCCRRIIPPTTIIOONN
       Makes objects capable of saving and reloading when the mud reboots.

       Definition at line 17 of file saveload.c.

MMEEMMBBEERR FFUUNNCCTTIIOONN DDOOCCUUMMEENNTTAATTIIOONN
   ssttrriinngg __ddeessttrruuccttoorr__ssaavveellooaadd (())
       Frees up the unique ID being used by this object, unless the world is
       busy being shut down.

       Definition at line 137 of file saveload.c.

       References unique_id.

   vvooiidd llooaadd__sseellff ((iinntt iidd))
       Used internally for loading this object's information from a .o file in
       the /data/ directory. It has several possible uses:


       Called while the world is loading to set up the object from its saved
       state

       Called after the world has already loaded to fix a bug where the
       original object was destroyed, but its .o file is still intact (this is
       a little like an 'undelete' -- the old .o file is only around until it
       gets reassigned). Simply give it the ID for the .o file and it will
       load from it.

       This may also be used to duplicate an existing object. In this case, it
       will load the data in ID but, upon detecting that the object is a
       duplicate, will change to a new ID.


       Reimplemented in IInnvveenn, and WWoorrlldd.

       Definition at line 65 of file saveload.c.

       References my_file_name, and unique_id.

   vvooiidd llooaadd__tteemmppllaattee ((ssttrriinngg ssttrr))
       Allows you to load settings for this object from any file, as long as
       this object has read access to it. A .o extension is assumed, and must
       not be specified.

       Definition at line 102 of file saveload.c.

       References my_file_name.

   ssttrriinngg qquueerryy__ffuullll__iidd (())
       A string which gives the combination of this object's file name and
       identification number, seperated by a a colon. This is used by IInnvveenn to
       save the contents of an object.

       Definition at line 46 of file saveload.c.

       References unique_id.

   nnoommaasskk qquueerryy__uunniiqquuee__iidd (())
       RReettuurrnnss::
           The unique ID (used to determine this object's save file name, see
           OOddiinn).

       Definition at line 30 of file saveload.c.

       References unique_id.

   vvooiidd ssaavvee__sseellff__oonnllyy (())
       In a saveload object, this is the same thing as save_self.

       Reimplemented in IInnvveenn.

       Definition at line 130 of file saveload.c.

   vvooiidd ssaavvee__tteemmppllaattee ((ssttrriinngg ssttrr))
       Allows you to save this object's information to any file, as long as
       the object has write access to it. A .o extension is always assumed.

       Definition at line 90 of file saveload.c.

MMEEMMBBEERR DDAATTAA DDOOCCUUMMEENNTTAATTIIOONN
   ssttrriinngg mmyy__ffiillee__nnaammee
       The .c file from which this object was created.

       Definition at line 21 of file saveload.c.

       Referenced by load_self(), and load_template().

   ssyymmbbooll ssaavvee__llooccaattiioonn
       An object reference -- where I saved.

       Definition at line 27 of file saveload.c.

   nnoossaavvee iinntt uunniiqquuee__iidd
       A magic number, used to determine where this object will save. No two
       saveload objects have the same one.

       Definition at line 24 of file saveload.c.

       Referenced by _destructor_saveload(), load_self(), query_full_id(), and
       query_unique_id().


AAUUTTHHOORR
       Generated automatically by Doxygen for Walraven from the source code.



Walraven                          8 Jan 2004                       Saveload(3)
