From 99cfb30eeaafac7b11ea8562202e1fece5d3c363 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 5 Jan 2023 19:35:33 +0100 Subject: Naively implemented JSON universe Repository --- sim/src/BaseBattle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/src') diff --git a/sim/src/BaseBattle.cpp b/sim/src/BaseBattle.cpp index 17df990..224c16c 100644 --- a/sim/src/BaseBattle.cpp +++ b/sim/src/BaseBattle.cpp @@ -29,7 +29,7 @@ BaseBattle::BaseBattle(const campaign::Scenario& scenario) : _registry {}, spawner {scenario.last_team(), scenario.radius, 0.1} { - const auto repo = universe::load_sample(); + const auto repo = universe::load_json("resources/universe"); Builder build {_registry, spawner}; for (const auto& ship : scenario.ships) { const auto entity = build(repo->ship_type(ship.type), ship.team); -- cgit v1.1