mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-31 17:37:22 +02:00
Consolidate rsave and msave into set.c
This commit is contained in:
parent
3f5c33fe66
commit
c1419f6fe7
15 changed files with 1223 additions and 1112 deletions
20
src/set.h
20
src/set.h
|
|
@ -8,10 +8,30 @@
|
|||
#ifndef SET_H
|
||||
#define SET_H
|
||||
|
||||
#include "structs.h"
|
||||
|
||||
ACMD(do_rset);
|
||||
ACMD(do_rcreate);
|
||||
ACMD(do_ocreate);
|
||||
ACMD(do_oset);
|
||||
ACMD(do_osave);
|
||||
ACMD(do_msave);
|
||||
ACMD(do_rsave);
|
||||
|
||||
/* Boot-time loader: scans ROOMSAVE_DIR and restores contents into rooms. */
|
||||
void RoomSave_boot(void);
|
||||
|
||||
/* Immediate save for a single room (room_rnum). Safe to call anytime. */
|
||||
/* saves ground objs AND NPCs (+their E/G/P trees) in rsv. */
|
||||
int RoomSave_now(room_rnum rnum);
|
||||
|
||||
/* Autosave pass for all rooms flagged ROOM_SAVE. */
|
||||
void RoomSave_autosave_tick(void);
|
||||
|
||||
/* Only save rooms when modified */
|
||||
void RoomSave_init_dirty(void);
|
||||
void RoomSave_mark_dirty_room(room_rnum rnum);
|
||||
/* For container edits: find the room an object ultimately lives in */
|
||||
room_rnum RoomSave_room_of_obj(struct obj_data *obj);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue