Start the level manager for tomorrow.

main
Zed A. Shaw 2 days ago
parent 3a16595ca7
commit 193f5f915e
  1. 10
      levelmanager.cpp
  2. 9
      levelmanager.hpp
  3. 2
      meson.build
  4. 18
      tests/levelmanager.cpp

@ -0,0 +1,10 @@
#include "levelmanager.hpp"
LevelManager::LevelManager() {
// does nothing yet
}
void LevelManager::create_level() {
// does nothing yet
}

@ -0,0 +1,9 @@
#pragma once
class LevelManager {
LevelManager();
void create_level();
};

@ -22,6 +22,7 @@ source=[
'matrix.cpp', 'matrix.cpp',
'tilemap.cpp', 'tilemap.cpp',
'map.cpp', 'map.cpp',
'levelmanager.cpp',
'gui.cpp', 'gui.cpp',
'rand.cpp', 'rand.cpp',
'sound.cpp', 'sound.cpp',
@ -59,6 +60,7 @@ runtests = executable('runtests',
'tests/sound.cpp', 'tests/sound.cpp',
'tests/pathing.cpp', 'tests/pathing.cpp',
'tests/lighting.cpp', 'tests/lighting.cpp',
'tests/levelmanager.cpp',
'tests/gui.cpp', 'tests/gui.cpp',
'tests/worldbuilder.cpp', 'tests/worldbuilder.cpp',
'tests/inventory.cpp', 'tests/inventory.cpp',

@ -0,0 +1,18 @@
#include <catch2/catch_test_macros.hpp>
#include <fmt/core.h>
#include "gui.hpp"
#include "map.hpp"
#include "dinkyecs.hpp"
#include "worldbuilder.hpp"
#include "save.hpp"
#include "systems.hpp"
#include "spatialmap.hpp"
#include "levelmanager.hpp"
using namespace fmt;
using namespace components;
using std::string;
TEST_CASE("", "[levelmanager]") {
// empty test to get setup
}
Loading…
Cancel
Save