Add api_version gloabal variable to profiles
Currently only `0` is supported (the default).
This commit is contained in:
committed by
Patrick Niklaus
parent
b9b52cb857
commit
0f3a463854
@@ -30,6 +30,8 @@ struct LuaScriptingContext final
|
||||
bool has_node_function;
|
||||
bool has_way_function;
|
||||
bool has_segment_function;
|
||||
|
||||
int api_version;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -42,6 +44,9 @@ struct LuaScriptingContext final
|
||||
class Sol2ScriptingEnvironment final : public ScriptingEnvironment
|
||||
{
|
||||
public:
|
||||
static const constexpr int SUPPORTED_MIN_API_VERSION = 0;
|
||||
static const constexpr int SUPPORTED_MAX_API_VERSION = 0;
|
||||
|
||||
explicit Sol2ScriptingEnvironment(const std::string &file_name);
|
||||
~Sol2ScriptingEnvironment() override = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user