Files
asarium ad1ede7b74 Add new options system
This is a system for storing arbitrary data in the config file and then
easily retrieving it later on. This has full Lua support for exposing
the available options in a custom UI and changing the values of the
options. This ported some of the existing command line options over to
the new system which is opt-in for the moment by using a mod_table flag.
2019-03-02 14:02:21 +01:00

24 lines
393 B
C++

#pragma once
#include "options/Option.h"
#include "scripting/ade_api.h"
namespace scripting {
namespace api {
class option_h {
const options::OptionBase* _opt = nullptr;
public:
explicit option_h(const options::OptionBase* opt = nullptr);
bool isValid() const;
const options::OptionBase* get();
};
DECLARE_ADE_OBJ(l_Option, option_h);
} // namespace api
} // namespace scripting