This includes an added optimization to the resource manager - it now uses unordered (hash) maps instead of ordered (tree) maps to keep track of loaded resources and paths, for the average constant lookup time.
16 lines
460 B
C++
16 lines
460 B
C++
|
|
#define CATCH_CONFIG_MAIN
|
|
#include "catch.hpp"
|
|
|
|
// After this are some globals that are referenced from common code but not defined, and not used in the test cases
|
|
#include "graphtool.hpp"
|
|
sf::RenderWindow mainPtr;
|
|
std::string scenario_temp_dir_name = "test_scenario";
|
|
cCustomGraphics spec_scen_g;
|
|
|
|
// And these are referenced from the scenario code, though not used in test cases
|
|
#include "scenario.hpp"
|
|
location cur_out;
|
|
short cur_town;
|
|
cScenario scenario;
|