Dummied out the load & save functions
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
#include <fstream>
|
||||
#include <stdexcept>
|
||||
|
||||
void loadGameMap(std::string mapPathName, RegionPager* pager, std::list<TileSheet>* sheetList) {
|
||||
//open the index file
|
||||
void loadGameMap(std::string mapPathName, RegionPager* const, TileSheetManager* const) {
|
||||
/* //open the index file
|
||||
std::ifstream indexFile(mapPathName + "\\index");
|
||||
if (!indexFile.is_open()) {
|
||||
throw(std::runtime_error(std::string("Failed to open game map: ") + mapPathName));
|
||||
@@ -72,10 +72,11 @@ void loadGameMap(std::string mapPathName, RegionPager* pager, std::list<TileShee
|
||||
|
||||
//clean up
|
||||
indexFile.close();
|
||||
*/
|
||||
}
|
||||
|
||||
void saveGameMap(std::string mapPathName, RegionPager* pager, std::list<TileSheet>* sheetList) {
|
||||
//open the index file
|
||||
void saveGameMap(std::string mapPathName, RegionPager* const, TileSheetManager* const) {
|
||||
/* //open the index file
|
||||
std::ofstream indexFile(mapPathName + "\\index");
|
||||
if (!indexFile.is_open()) {
|
||||
throw(std::runtime_error(std::string("Failed to open game map: ") + mapPathName));
|
||||
@@ -98,4 +99,5 @@ void saveGameMap(std::string mapPathName, RegionPager* pager, std::list<TileShee
|
||||
}
|
||||
|
||||
indexFile.close();
|
||||
*/
|
||||
}
|
||||
@@ -2,14 +2,13 @@
|
||||
#define MAPLOADER_HPP_
|
||||
|
||||
#include "region_pager.hpp"
|
||||
#include "tile_sheet.hpp"
|
||||
#include "tile_sheet_manager.hpp"
|
||||
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
/* Given the map name and pointers to containers, this is a generic loading system
|
||||
*/
|
||||
void loadGameMap(std::string mapPathName, RegionPager* pager, std::list<TileSheet>* sheetList);
|
||||
void saveGameMap(std::string mapPathName, RegionPager* pager, std::list<TileSheet>* sheetList);
|
||||
void loadGameMap(std::string mapPathName, RegionPager* const, TileSheetManager* const);
|
||||
void saveGameMap(std::string mapPathName, RegionPager* const, TileSheetManager* const);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user