Implementation of parsing for the map format (untested)

- Some stubs inserted for loading new-format scenario data
This commit is contained in:
2014-12-05 00:50:00 -05:00
parent cec15c1cce
commit 4db81f1403
8 changed files with 221 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ cScenario::cItemStorage::cItemStorage() : ter_type(-1), property(0) {
//{-1,{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},{0,0,0,0,0,0,0,0,0,0},0}
cScenario& cScenario::operator = (legacy::scenario_data_type& old){
is_legacy = true;
int i,j;
// for(i = 0; i < 3; i++) format.ver[i] = old.ver[i];
// format.min_run_ver = old.min_run_ver;

View File

@@ -96,6 +96,7 @@ public:
char monst_strs[100][256];
bool adjust_diff : 1;
char : 7;
bool is_legacy;
fs::path scen_file; // transient
cOutdoors* outdoors;
cTown* towns;