ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示
/doc/efuns/save_object
ssssaaaavvvveeee____oooobbbbjjjjeeeecccctttt((((3333)))) MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444)))) ssssaaaavvvveeee____oooobbbbjjjjeeeecccctttt((((3333))))
NNNNAAAAMMMMEEEE
save_object() - save the values of variables in an object
into a file
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
int save_object( string name, int flag );
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
Save all values of non-static variables in this object in
the file `name'. valid_write() in the master object
determines whether this is allowed. If the optional second
argument is 1, then variables that are zero (0) are also
saved (normally, they aren't). Object variables always save
as 0.
RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
save_object() returns 1 for success, 0 for failure.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
restore_object(3)
Page 1 (printed 3/16/95)