summaryrefslogtreecommitdiff
path: root/universe/include
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-03 00:15:11 +0100
committerAki <please@ignore.pl>2023-01-03 00:15:11 +0100
commit49571905c06046a9db0e60e063bf48c92fbb73a9 (patch)
tree8e31b3ee7e1adc29622d85b3cb4aee682990e3e9 /universe/include
parente84f3eba125f64b852ae8755df3e1ab78aabeebf (diff)
downloadkurator-49571905c06046a9db0e60e063bf48c92fbb73a9.zip
kurator-49571905c06046a9db0e60e063bf48c92fbb73a9.tar.gz
kurator-49571905c06046a9db0e60e063bf48c92fbb73a9.tar.bz2
Added rather naive interface for repository iteration
Diffstat (limited to 'universe/include')
-rw-r--r--universe/include/kurator/universe/Repository.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/universe/include/kurator/universe/Repository.h b/universe/include/kurator/universe/Repository.h
index 8d44793..3758421 100644
--- a/universe/include/kurator/universe/Repository.h
+++ b/universe/include/kurator/universe/Repository.h
@@ -1,5 +1,6 @@
#pragma once
+#include <functional>
#include <string>
#include "ShipType.h"
@@ -18,6 +19,8 @@ public:
virtual ~Repository() = default;
virtual ShipType ship_type(const std::string& id) const = 0;
virtual TurretType turret_type(const std::string& id) const = 0;
+ virtual void for_ship_types(std::function<void(const ShipType&)> func) const = 0;
+ virtual void for_turret_types(std::function<void(const TurretType&)> func) const = 0;
};