Test coverage back and save system should work again but have to confirm it in-game.

This commit is contained in:
Zed A. Shaw 2024-12-02 09:58:54 -05:00
parent 6b4ebf7629
commit 2576b16869
9 changed files with 43 additions and 31 deletions

View file

@ -3,6 +3,7 @@
#include <nlohmann/json.hpp>
#include <fstream>
#include "map.hpp"
#include "worldbuilder.hpp"
#include "lights.hpp"
#include "point.hpp"
@ -10,7 +11,8 @@ using namespace lighting;
TEST_CASE("lighting a map works", "[lighting]") {
Map map(20,20);
map.generate();
WorldBuilder builder(map);
builder.generate();
Point light1 = map.place_entity(0);
Point light2 = map.place_entity(1);