Created the loadGameMap() function, still incomplete

Although the overall logic of this function is finished, I still need to
write the callbacks for RegionPager's onNew and onDelete.

I've also tested this using a hand written save/index file. I've written
up a map file format by hand, and I'll be implementing it over the next
few commits.
This commit is contained in:
Kayne Ruse
2013-10-14 21:12:09 +11:00
parent 0d3c3243a0
commit 88aee0f4f5
8 changed files with 133 additions and 13 deletions
+15
View File
@@ -0,0 +1,15 @@
#ifndef MAPLOADER_HPP_
#define MAPLOADER_HPP_
#include "region_pager.hpp"
#include "tile_sheet.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);
#endif