Rename to GameDB and GameDB::Level.

This commit is contained in:
Zed A. Shaw 2025-08-20 23:20:36 -04:00
parent c46927ea10
commit a20d701096
23 changed files with 142 additions and 151 deletions

View file

@ -16,8 +16,8 @@ using std::string, std::shared_ptr;
using matrix::Matrix;
std::shared_ptr<Map> make_map() {
Game::init();
return Game::current().map;
GameDB::init();
return GameDB::current().map;
}
TEST_CASE("basic matrix iterator", "[matrix]") {
@ -259,7 +259,7 @@ TEST_CASE("prototype circle algorithm", "[matrix]") {
TEST_CASE("viewport iterator", "[matrix]") {
components::init();
textures::init();
Game::init();
GameDB::init();
size_t width = Random::uniform<size_t>(20, 22);
size_t height = Random::uniform<size_t>(21, 25);
shared_ptr<Map> map = make_map();