Tests are now clean so next step is to officially nuke the level manager.
This commit is contained in:
parent
564f9842a2
commit
5aca2fb56a
8 changed files with 47 additions and 72 deletions
|
@ -4,20 +4,21 @@
|
|||
#include "config.hpp"
|
||||
#include "matrix.hpp"
|
||||
#include "rand.hpp"
|
||||
#include "levelmanager.hpp"
|
||||
#include "game_level.hpp"
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <fstream>
|
||||
#include "map.hpp"
|
||||
#include <memory>
|
||||
#include "levelmanager.hpp"
|
||||
|
||||
using namespace nlohmann;
|
||||
using namespace fmt;
|
||||
using std::string;
|
||||
using matrix::Matrix;
|
||||
|
||||
shared_ptr<Map> make_map() {
|
||||
// BUG? I mean, it's a shared_ptr so it should keep it around but....
|
||||
LevelManager levels;
|
||||
GameLevel level = levels.current();
|
||||
return level.map;
|
||||
std::shared_ptr<Map> make_map() {
|
||||
Game::init();
|
||||
return Game::current().map;
|
||||
}
|
||||
|
||||
TEST_CASE("basic matrix iterator", "[matrix:basic]") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue