Dummied out the load & save functions

This commit is contained in:
Kayne Ruse
2013-10-22 20:22:35 +11:00
parent 77a90f9c0c
commit 81fab06e3b
2 changed files with 9 additions and 8 deletions
+6 -4
View File
@@ -5,8 +5,8 @@
#include <fstream> #include <fstream>
#include <stdexcept> #include <stdexcept>
void loadGameMap(std::string mapPathName, RegionPager* pager, std::list<TileSheet>* sheetList) { void loadGameMap(std::string mapPathName, RegionPager* const, TileSheetManager* const) {
//open the index file /* //open the index file
std::ifstream indexFile(mapPathName + "\\index"); std::ifstream indexFile(mapPathName + "\\index");
if (!indexFile.is_open()) { if (!indexFile.is_open()) {
throw(std::runtime_error(std::string("Failed to open game map: ") + mapPathName)); 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 //clean up
indexFile.close(); indexFile.close();
*/
} }
void saveGameMap(std::string mapPathName, RegionPager* pager, std::list<TileSheet>* sheetList) { void saveGameMap(std::string mapPathName, RegionPager* const, TileSheetManager* const) {
//open the index file /* //open the index file
std::ofstream indexFile(mapPathName + "\\index"); std::ofstream indexFile(mapPathName + "\\index");
if (!indexFile.is_open()) { if (!indexFile.is_open()) {
throw(std::runtime_error(std::string("Failed to open game map: ") + mapPathName)); 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(); indexFile.close();
*/
} }
+3 -4
View File
@@ -2,14 +2,13 @@
#define MAPLOADER_HPP_ #define MAPLOADER_HPP_
#include "region_pager.hpp" #include "region_pager.hpp"
#include "tile_sheet.hpp" #include "tile_sheet_manager.hpp"
#include <list>
#include <string> #include <string>
/* Given the map name and pointers to containers, this is a generic loading system /* 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 loadGameMap(std::string mapPathName, RegionPager* const, TileSheetManager* const);
void saveGameMap(std::string mapPathName, RegionPager* pager, std::list<TileSheet>* sheetList); void saveGameMap(std::string mapPathName, RegionPager* const, TileSheetManager* const);
#endif #endif