diff options
author | hop311 <hop3114@gmail.com> | 2024-07-21 15:09:25 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-07-22 20:21:27 +0200 |
commit | 67cbd14630c4344902d3fa1ddca178809da4293b (patch) | |
tree | 9df96829dd0f9a0bd7c2e6b0e047547aa4bff3a7 /src/headless/main.cpp | |
parent | d1f3a96b72dd06b5f97dd4643e5f016a02b42ea6 (diff) |
Fleshing out Country, State and Province instances + historycountry-instance
Diffstat (limited to 'src/headless/main.cpp')
-rw-r--r-- | src/headless/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/headless/main.cpp b/src/headless/main.cpp index 1acf581..23b5c93 100644 --- a/src/headless/main.cpp +++ b/src/headless/main.cpp @@ -25,6 +25,7 @@ static bool run_headless(Dataloader::path_vector_t const& roots, bool run_tests) Logger::info("State updated"); }, nullptr }; + Logger::info("===== Loading definitions... ====="); ret &= game_manager.load_definitions( roots, [](std::string_view key, Dataloader::locale_t locale, std::string_view localisation) -> bool { @@ -40,6 +41,14 @@ static bool run_headless(Dataloader::path_vector_t const& roots, bool run_tests) std::cout << "Testing Executed" << std::endl << std::endl; } + Logger::info("===== Setting up instance... ====="); + ret &= game_manager.setup_instance( + game_manager.get_definition_manager().get_history_manager().get_bookmark_manager().get_bookmark_by_index(0) + ); + + Logger::info("===== Starting game session... ====="); + ret &= game_manager.start_game_session(); + return ret; } |