/
roa/
roa/lib/boards/
roa/lib/config/
roa/lib/edits/
roa/lib/help/
roa/lib/misc/
roa/lib/plrobjs/
roa/lib/quests/
roa/lib/socials/
roa/lib/www/
roa/lib/www/LEDSign/
roa/lib/www/LEDSign/fonts/
roa/lib/www/LEDSign/scripts/
roa/src/s_inc/
roa/src/sclient/
roa/src/sclient/binary/
roa/src/sclient/text/
roa/src/util/
/************************************************************************
	Realms of Aurealis 		James Rhone aka Vall of RoA

objsave.h				Header file for objsave.h...
					Function protos and such related
					to loading/saving of objects.

		******** Heavily modified and expanded ********
		*** BE AWARE OF ALL RIGHTS AND RESERVATIONS ***
		******** Heavily modified and expanded ********
		        All rights reserved henceforth. 

    Please note that no guarantees are associated with any code from
Realms of Aurealis.  All code which has been released to the general
public has been done so with an 'as is' pretense.  RoA is based on both
Diku and CircleMUD and ALL licenses from both *MUST* be adhered to as well
as the RoA license.   *** Read, Learn, Understand, Improve ***
*************************************************************************/
#ifndef ROA_OBJSAVE_H
#define ROA_OBJSAVE_H

// defines
#define OBJ_ARRAY_SIZE 70

// related to autowear
int 	autowear(chdata *ch);
int 	assign_num(chdata *ch, obdata *obj, int this_obj_id);
void 	restore_obj_and_contents(chdata *ch, obdata *ob, obdata **ob_array);
void 	assign_position_ids(chdata *ch);
void 	assign_parents(obdata *obj);
void 	assign_inventory(chdata *ch);

void 	extract_norents(obdata *ob);
BOOL 	find_unrentables(chdata *ch, obdata *obj);
BOOL 	has_norents(chdata *ch);
int 	inv_count(obdata *obj);
int 	check_num(chdata *ch);
void 	reduce_num(chdata *ch);
BOOL 	save_object(obdata *obj, FILE *fp);
void 	perform_silent_put(chdata *ch, obdata *ob, obdata *cont);
int	alias_get_filename(char *orig_name, char *filename);
BOOL 	load_char_objects(chdata *ch);
BOOL 	delete_object_file(chdata *ch);
BOOL 	delete_alias_file(chdata *ch);
BOOL 	delete_reimb_file(chdata *ch);
void 	write_reimb_file(chdata *ch);

int     get_object_filename(char *orig_name, char *filename);
int     get_reimb_filename(char *orig_name, char *filename);
void    listrent(chdata *ch, char *name);
void    listreimb(chdata *ch, char *name);
BOOL    reimburse(chdata *ch);
void    extract_objects(obdata *obj);
BOOL 	is_unrentable(obdata *obj);
void    extract_cheapest(obdata *obj);
BOOL    load_room_objects(int hvnum);
BOOL    load_house_objects(int hvnum);
void    save_char_objects(chdata *ch);
void  	mortal_save(void);
void    cryo_save(chdata *ch);
void    force_save(chdata *ch);

#endif /* ROA_OBJSAVE_H */