From 1683859e333f98fb63f1c72d926bb366a3b89f0b Mon Sep 17 00:00:00 2001 From: zaaarf Date: Wed, 22 Nov 2023 17:16:34 +0100 Subject: chore: use PROPERTY and its variants when possible --- src/openvic-simulation/testing/TestScript.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/openvic-simulation/testing/TestScript.hpp') 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 requirements = std::vector(); - 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 get_passed_requirements(); std::vector get_failed_requirements(); std::vector get_untested_requirements(); - GameManager* get_game_manager(); - std::string get_script_name(); // Setters void set_requirements(std::vector 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( -- cgit v1.2.3-56-ga3b1