MCPcopy Create free account
hub / github.com/NetHack/NetHack / save_rooms

Function save_rooms

src/mkroom.c:862–871  ·  view source on GitHub ↗

* save_rooms : Save all the rooms on disk! */

Source from the content-addressed store, hash-verified

860 * save_rooms : Save all the rooms on disk!
861 */
862void
863save_rooms(NHFILE *nhfp)
864{
865 short i;
866
867 /* First, write the number of rooms */
868 Sfo_int(nhfp, &svn.nroom, "room-nroom");
869 for (i = 0; i < svn.nroom; i++)
870 save_room(nhfp, &svr.rooms[i]);
871}
872#endif /* !SFCTOOL */
873
874staticfn void

Callers 1

savelev_coreFunction · 0.85

Calls 1

save_roomFunction · 0.85

Tested by

no test coverage detected