aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/testing/TestScript.hpp
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-11-22 17:16:34 +0100
committer zaaarf <zaaarf@proton.me>2023-11-22 17:16:34 +0100
commit1683859e333f98fb63f1c72d926bb366a3b89f0b (patch)
treee11dde918a7f1f228d3383ba8f9287385e43b4f5 /src/openvic-simulation/testing/TestScript.hpp
parent5c6caf6fbb7c606f4ebe0c397cc15c97d776f13d (diff)
chore: use PROPERTY and its variants when possible
Diffstat (limited to 'src/openvic-simulation/testing/TestScript.hpp')
-rw-r--r--src/openvic-simulation/testing/TestScript.hpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/openvic-simulation/testing/TestScript.hpp b/src/openvic-simulation/testing/TestScript.hpp
index bfc2e95..b41246e 100644
--- a/src/openvic-simulation/testing/TestScript.hpp
+++ b/src/openvic-simulation/testing/TestScript.hpp
@@ -9,8 +9,8 @@ namespace OpenVic {
class TestScript {
std::vector<Requirement*> requirements = std::vector<Requirement*>();
- GameManager* game_manager;
- std::string script_name;
+ GameManager* PROPERTY_RW(game_manager);
+ std::string PROPERTY_RW(script_name);
public:
// expects an overriden method that performs arbitrary code execution
@@ -26,14 +26,10 @@ namespace OpenVic {
std::vector<Requirement*> get_passed_requirements();
std::vector<Requirement*> get_failed_requirements();
std::vector<Requirement*> get_untested_requirements();
- GameManager* get_game_manager();
- std::string get_script_name();
// Setters
void set_requirements(std::vector<Requirement*> in_requirements);
void add_requirement(Requirement* req);
- void set_game_manager(GameManager* in_game_manager);
- void set_script_name(std::string in_script_name);
// Methods
void pass_or_fail_req_with_actual_and_target_values(