package game import ( "thehouseoficarus/internal/persistence" ) // writeRoomFile durably writes an authored world/content file: temp file + // rename + directory fsync. The in-game admin room commands previously used a // bare os.WriteFile, which can truncate world data if the process dies // mid-write. func writeRoomFile(path string, data []byte) error { return persistence.WriteFile(path, data, 0644) }