Start the level manager for tomorrow.

This commit is contained in:
Zed A. Shaw 2025-01-18 21:05:19 -05:00
parent 3a16595ca7
commit 193f5f915e
4 changed files with 39 additions and 0 deletions

10
levelmanager.cpp Normal file
View file

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

9
levelmanager.hpp Normal file
View file

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

View file

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

18
tests/levelmanager.cpp Normal file
View file

@ -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
}