aboutsummaryrefslogtreecommitdiff
path: root/src/headless
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-07-23 19:47:47 +0200
committer GitHub <noreply@github.com>2024-07-23 19:47:47 +0200
commit6cd55c452d1643666ff4169a89402fd3e3b66c61 (patch)
tree888b847a54c66b6e9d1b2f7ee3e3d0f8071eceda /src/headless
parent9d57ca273e4b32ab82a51789ec58e08fefb5276a (diff)
parent67cbd14630c4344902d3fa1ddca178809da4293b (diff)
Merge pull request #177 from OpenVicProject/country-instance
Fleshing out Country, State and Province instances + history
Diffstat (limited to 'src/headless')
-rw-r--r--src/headless/main.cpp9
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;
}