aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/scripts/ConditionScript.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-01-02 15:40:00 +0100
committer GitHub <noreply@github.com>2024-01-02 15:40:00 +0100
commit4c8da86c3bede8834f381fa63edaa3e140131f69 (patch)
treeff3433a63e91b9239eb7226e75054314182d6c1f /src/openvic-simulation/scripts/ConditionScript.hpp
parent66b80459c9d49895de902432bce11176b1270878 (diff)
parent5f64f983d0cead266a28791be42162c443fd2a75 (diff)
Merge pull request #112 from OpenVicProject/script-framework
Added framework for loading all Conditions and Effects
Diffstat (limited to 'src/openvic-simulation/scripts/ConditionScript.hpp')
-rw-r--r--src/openvic-simulation/scripts/ConditionScript.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/openvic-simulation/scripts/ConditionScript.hpp b/src/openvic-simulation/scripts/ConditionScript.hpp
new file mode 100644
index 0000000..cb967a2
--- /dev/null
+++ b/src/openvic-simulation/scripts/ConditionScript.hpp
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "openvic-simulation/scripts/Script.hpp"
+
+namespace OpenVic {
+ struct GameManager;
+
+ struct ConditionScript final : Script<GameManager const&> {
+ protected:
+ bool _parse_script(ast::NodeCPtr root, GameManager const& game_manager) override;
+ };
+}