RegionPager can now be instanciated with template parameters
* Fixed Region::GetX() and Region::GetY() * Replaced calls to std::find_if with regular for loops * Changed typing of RegionPager::regionList ** regionList now holds pointers rather than the objects themselves * Added vestigial classes MapFileFormat and MapGenerator ** MapGenerator creates and destroys the region objects * I'm leaving in the debugging code for now ** This includes trace statements and a basterdized main() function in /editor/main.cpp
This commit is contained in:
+17
-1
@@ -18,7 +18,7 @@
|
||||
*
|
||||
* 3. This notice may not be removed or altered from any source
|
||||
* distribution.
|
||||
*/
|
||||
* /
|
||||
#include "editor_application.hpp"
|
||||
|
||||
#include <stdexcept>
|
||||
@@ -40,3 +40,19 @@ int main(int, char**) {
|
||||
cout << "Clean exit" << endl;
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
#include "region_pager.hpp"
|
||||
#include "map_file_format.hpp"
|
||||
#include "map_generator.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
RegionPager<MapGenerator, MapFileFormat> pager(40, 40, 3);
|
||||
pager.CreateRegion(0, 0);
|
||||
pager.SaveRegion(0, 0);
|
||||
pager.LoadRegion(0, 0);
|
||||
pager.UnloadRegion(0, 0);
|
||||
std::cout << "Finishing program" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user