tbamud/src/set.h

38 lines
930 B
C
Raw Normal View History

2025-12-31 14:35:19 -08:00
/**
* @file set.h
* Builder room/object creation and utility headers.
*
* This set of code was not originally part of the circlemud distribution.
2025-12-31 14:35:19 -08:00
*/
#ifndef SET_H
#define SET_H
2026-01-02 06:27:54 -08:00
#include "structs.h"
2025-12-31 14:35:19 -08:00
ACMD(do_rset);
ACMD(do_rcreate);
ACMD(do_ocreate);
2026-01-01 09:05:00 -08:00
ACMD(do_oset);
2025-12-31 14:35:19 -08:00
ACMD(do_osave);
2026-01-02 06:27:54 -08:00
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);
2025-12-31 14:35:19 -08:00
#endif