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
+6
View File
@@ -51,3 +51,9 @@ std::string to_string_custom(int i) {
snprintf(buffer, 20, "%d", i);
return std::string(buffer);
}
int to_integer_custom(std::string s) {
int ret = 0;
sscanf(s.c_str(), "%d", &ret);
return ret;
}