aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/types
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-09-24 23:42:48 +0200
committer Hop311 <hop3114@gmail.com>2023-09-25 00:12:36 +0200
commitbbfa8faf5337ebdff60ef2106074417aa628eca1 (patch)
tree99604a6bc9a99f1c68232cfff84f01192991f1a9 /src/openvic-simulation/types
parent3714db86f7c52674e044566096f389660a67a039 (diff)
Adding terrain image/type loading
Diffstat (limited to 'src/openvic-simulation/types')
-rw-r--r--src/openvic-simulation/types/IdentifierRegistry.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openvic-simulation/types/IdentifierRegistry.hpp b/src/openvic-simulation/types/IdentifierRegistry.hpp
index 7b61cf8..41e4c6b 100644
--- a/src/openvic-simulation/types/IdentifierRegistry.hpp
+++ b/src/openvic-simulation/types/IdentifierRegistry.hpp
@@ -241,6 +241,7 @@ namespace OpenVic {
#define IDENTIFIER_REGISTRY_ACCESSORS_CUSTOM_PLURAL(type, singular, plural) \
void lock_##plural() { plural.lock(); } \
+ bool plural##_are_locked() const { return plural.is_locked(); } \
type const* get_##singular##_by_identifier(const std::string_view identifier) const { \
return plural.get_item_by_identifier(identifier); } \
size_t get_##singular##_count() const { \