Dummied out the load & save functions
This commit is contained in:
@@ -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();
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user