summaryrefslogtreecommitdiff
path: root/sim/src
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-05 19:35:33 +0100
committerAki <please@ignore.pl>2023-01-05 19:35:33 +0100
commit99cfb30eeaafac7b11ea8562202e1fece5d3c363 (patch)
treeb900bf4d8726268dc4fa52182399c3d79b391eff /sim/src
parent728f73f97657cab299da26793741e405f554fab6 (diff)
downloadkurator-99cfb30eeaafac7b11ea8562202e1fece5d3c363.zip
kurator-99cfb30eeaafac7b11ea8562202e1fece5d3c363.tar.gz
kurator-99cfb30eeaafac7b11ea8562202e1fece5d3c363.tar.bz2
Naively implemented JSON universe Repository
Diffstat (limited to 'sim/src')
-rw-r--r--sim/src/BaseBattle.cpp2
1 files changed, 1 insertions, 1 deletions
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);