summaryrefslogtreecommitdiff
path: root/universe/include
diff options
context:
space:
mode:
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;
};