From bbfa8faf5337ebdff60ef2106074417aa628eca1 Mon Sep 17 00:00:00 2001 From: Hop311 Date: Sun, 24 Sep 2023 22:42:48 +0100 Subject: Adding terrain image/type loading --- src/openvic-simulation/Modifier.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/openvic-simulation/Modifier.hpp') diff --git a/src/openvic-simulation/Modifier.hpp b/src/openvic-simulation/Modifier.hpp index 6db2c0c..ea302b2 100644 --- a/src/openvic-simulation/Modifier.hpp +++ b/src/openvic-simulation/Modifier.hpp @@ -37,6 +37,9 @@ namespace OpenVic { ModifierValue(ModifierValue const&); ModifierValue(ModifierValue&&); + ModifierValue& operator=(ModifierValue const&); + ModifierValue& operator=(ModifierValue&&); + /* Removes effect entries with a value of zero. */ void trim(); size_t get_effect_count() const; @@ -98,6 +101,8 @@ namespace OpenVic { bool add_modifier(const std::string_view identifier, ModifierValue&& values, Modifier::icon_t icon); IDENTIFIER_REGISTRY_ACCESSORS(Modifier, modifier) - NodeTools::node_callback_t expect_modifier_value(NodeTools::callback_t callback) const; + bool setup_modifier_effects(); + + NodeTools::node_callback_t expect_modifier_value(NodeTools::callback_t callback, NodeTools::key_value_callback_t default_callback) const; }; } -- cgit v1.2.3-56-ga3b1