From eef62c82a2e58700fc1216b0b8c03e421bc77995 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sat, 30 Jun 2018 17:11:38 +0200 Subject: Modernize lua read (part 2 & 3): C++ templating assurance (#7410) * Modernize lua read (part 2 & 3): C++ templating assurance Implement the boolean reader Implement the string reader Also remove unused & unimplemented script_error_handler Add a reader with default value --- src/script/cpp_api/s_base.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/script/cpp_api/s_base.h') diff --git a/src/script/cpp_api/s_base.h b/src/script/cpp_api/s_base.h index 6f61b6b84..697e5f556 100644 --- a/src/script/cpp_api/s_base.h +++ b/src/script/cpp_api/s_base.h @@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include #include +#include "common/helper.h" #include "util/basic_macros.h" extern "C" { @@ -74,7 +75,7 @@ class GUIEngine; class ServerActiveObject; struct PlayerHPChangeReason; -class ScriptApiBase { +class ScriptApiBase : protected LuaHelper { public: ScriptApiBase(ScriptingType type); // fake constructor to allow script API classes (e.g ScriptApiEnv) to virtually inherit from this one. -- cgit v1.2.3