1 //------------------------------------------------------------------------ 2 // LEVEL LOAD / SAVE / NEW 3 //------------------------------------------------------------------------ 4 // 5 // Eureka DOOM Editor 6 // 7 // Copyright (C) 2001-2016 Andrew Apted 8 // Copyright (C) 1997-2003 André Majorel et al 9 // 10 // This program is free software; you can redistribute it and/or 11 // modify it under the terms of the GNU General Public License 12 // as published by the Free Software Foundation; either version 2 13 // of the License, or (at your option) any later version. 14 // 15 // This program is distributed in the hope that it will be useful, 16 // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 // GNU General Public License for more details. 19 // 20 //------------------------------------------------------------------------ 21 // 22 // Based on Yadex which incorporated code from DEU 5.21 that was put 23 // in the public domain in 1994 by Raphaël Quinet and Brendon Wyber. 24 // 25 //------------------------------------------------------------------------ 26 27 #ifndef __EUREKA_E_LOADSAVE_H__ 28 #define __EUREKA_E_LOADSAVE_H__ 29 30 #include "w_wad.h" 31 32 void LoadLevel(Wad_file *wad, const char *level); 33 void LoadLevelNum(Wad_file *wad, short lev_num); 34 35 void GetLevelFormat(Wad_file *wad, const char *level); 36 37 void RemoveEditWad(); 38 39 bool MissingIWAD_Dialog(); 40 41 void OpenFileMap(const char *filename, const char *map_name = NULL); 42 43 extern int last_given_file; 44 45 // these return false if user cancelled 46 bool M_SaveMap(); 47 bool M_ExportMap(); 48 49 /* commands */ 50 51 void CMD_NewProject(); 52 void CMD_ManageProject(); 53 54 void CMD_OpenMap(); 55 void CMD_GivenFile(); 56 void CMD_FlipMap(); 57 58 void CMD_SaveMap(); 59 void CMD_ExportMap(); 60 61 void CMD_FreshMap(); 62 void CMD_CopyMap(); 63 void CMD_RenameMap(); 64 void CMD_DeleteMap(); 65 66 // this one in m_testmap.cc 67 void CMD_TestMap(); 68 69 #endif /* __EUREKA_E_LOADSAVE_H__ */ 70 71 //--- editor settings --- 72 // vi:ts=4:sw=4:noexpandtab 73