aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/Modifier.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/Modifier.hpp')
-rw-r--r--src/openvic-simulation/Modifier.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/Modifier.hpp b/src/openvic-simulation/Modifier.hpp
index 78f8228..fc37655 100644
--- a/src/openvic-simulation/Modifier.hpp
+++ b/src/openvic-simulation/Modifier.hpp
@@ -6,8 +6,6 @@ namespace OpenVic {
struct ModifierManager;
struct ModifierEffect : HasIdentifier {
- friend struct ModifierManager;
-
enum class format_t {
PROPORTION_DECIMAL, /* An unscaled fraction/ratio, with 1 being "full"/"whole" */
PERCENTAGE_DECIMAL, /* A fraction/ratio scaled so that 100 is "full"/"whole" */
@@ -15,6 +13,8 @@ namespace OpenVic {
INT /* A discrete quantity, e.g. building count limit */
};
+ friend std::unique_ptr<ModifierEffect> std::make_unique<ModifierEffect>(std::string_view&&, bool&&, format_t&&);
+
private:
/* If true, positive values will be green and negative values will be red.
* If false, the colours will be switced.