aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/modifier/Modifier.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-10-05 20:08:55 +0200
committer hop311 <hop3114@gmail.com>2024-10-05 22:48:42 +0200
commit6c23b7ff2e8bc733699ef9b29aee80719001acf2 (patch)
tree31032796ff2addd154837a873663d8325ee6bdc6 /src/openvic-simulation/modifier/Modifier.hpp
parent4f9fd8a327b6de5fb32792a07453e9a2e245dc84 (diff)
Add nullcheck fuction variants accepting pointer arguments to ModifierValue and ModifierSum
Diffstat (limited to 'src/openvic-simulation/modifier/Modifier.hpp')
-rw-r--r--src/openvic-simulation/modifier/Modifier.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openvic-simulation/modifier/Modifier.hpp b/src/openvic-simulation/modifier/Modifier.hpp
index a848cb8..f52f126 100644
--- a/src/openvic-simulation/modifier/Modifier.hpp
+++ b/src/openvic-simulation/modifier/Modifier.hpp
@@ -71,6 +71,7 @@ namespace OpenVic {
bool empty() const;
fixed_point_t get_effect(ModifierEffect const& effect, bool* effect_found = nullptr) const;
+ fixed_point_t get_effect_nullcheck(ModifierEffect const* effect, bool* effect_found = nullptr) const;
bool has_effect(ModifierEffect const& effect) const;
void set_effect(ModifierEffect const& effect, fixed_point_t value);