aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/misc/Modifier.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2023-12-06 23:10:53 +0100
committer hop311 <hop3114@gmail.com>2023-12-07 21:38:17 +0100
commit398377011cb3d3c970451dcd215f3610159f1ae2 (patch)
tree2a73255f595eabb1441419a08bd0d5e5407213e7 /src/openvic-simulation/misc/Modifier.hpp
parent48a3f1729d709847d7cad33f594c77cac414e802 (diff)
Vec/set callbacks + crime file + prov building pos
Diffstat (limited to 'src/openvic-simulation/misc/Modifier.hpp')
-rw-r--r--src/openvic-simulation/misc/Modifier.hpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/openvic-simulation/misc/Modifier.hpp b/src/openvic-simulation/misc/Modifier.hpp
index f3678d9..617159a 100644
--- a/src/openvic-simulation/misc/Modifier.hpp
+++ b/src/openvic-simulation/misc/Modifier.hpp
@@ -1,7 +1,6 @@
#pragma once
#include "openvic-simulation/types/IdentifierRegistry.hpp"
-#include <unordered_set>
namespace OpenVic {
struct ModifierManager;
@@ -93,19 +92,6 @@ namespace OpenVic {
TriggeredModifier(TriggeredModifier&&) = default;
};
- struct Crime final : TriggeredModifier {
- friend struct ModifierManager;
-
- private:
- const bool PROPERTY(default_active);
- bool PROPERTY_RW(active);
-
- Crime(std::string_view new_identifier, ModifierValue&& new_values, icon_t new_icon, bool new_default_active);
-
- public:
- Crime(Crime&&) = default;
- };
-
struct ModifierInstance {
private:
@@ -127,7 +113,6 @@ namespace OpenVic {
IdentifierInstanceRegistry<ModifierEffect> modifier_effects;
string_set_t complex_modifiers;
- IdentifierRegistry<Crime> crime_modifiers;
IdentifierRegistry<Modifier> event_modifiers;
IdentifierRegistry<Modifier> static_modifiers;
IdentifierRegistry<TriggeredModifier> triggered_modifiers;
@@ -151,10 +136,6 @@ namespace OpenVic {
bool setup_modifier_effects();
- bool add_crime_modifier(std::string_view identifier, ModifierValue&& values, Modifier::icon_t icon, bool active);
- IDENTIFIER_REGISTRY_ACCESSORS(crime_modifier)
- bool load_crime_modifiers(ast::NodeCPtr root);
-
bool add_event_modifier(std::string_view identifier, ModifierValue&& values, Modifier::icon_t icon);
IDENTIFIER_REGISTRY_ACCESSORS(event_modifier)
bool load_event_modifiers(ast::NodeCPtr root);