diff options
author | hop311 <hop3114@gmail.com> | 2024-10-19 00:53:32 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-10-19 00:53:32 +0200 |
commit | 18ab144ec4ecf1efca68a26bc79b9d54e28e54f8 (patch) | |
tree | bf66badbfbc689b28e593f9aa1f080998ec2b3d8 /src/openvic-simulation/modifier/ModifierValue.cpp | |
parent | 6181851281876730d7db4bed18791fdbbe3cfbbc (diff) |
Move ModifierManager to its own files
Diffstat (limited to 'src/openvic-simulation/modifier/ModifierValue.cpp')
-rw-r--r-- | src/openvic-simulation/modifier/ModifierValue.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openvic-simulation/modifier/ModifierValue.cpp b/src/openvic-simulation/modifier/ModifierValue.cpp index 51d41bc..eec34bb 100644 --- a/src/openvic-simulation/modifier/ModifierValue.cpp +++ b/src/openvic-simulation/modifier/ModifierValue.cpp @@ -134,3 +134,12 @@ void ModifierValue::multiply_add_filter( } } } + +namespace OpenVic { // so the compiler shuts up + std::ostream& operator<<(std::ostream& stream, ModifierValue const& value) { + for (ModifierValue::effect_map_t::value_type const& effect : value.values) { + stream << effect.first << ": " << effect.second << "\n"; + } + return stream; + } +} |