mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-07 22:56:30 -10:00
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.
24 lines
393 B
C++
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
|