MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / OptionInfo

Method OptionInfo

src/Engine/OptionInfo.cpp:33–37  ·  view source on GitHub ↗

* Creates info for a boolean option. * @param id String ID used in serializing. * @param option Pointer to the option. * @param def Default option value. * @param desc Language ID for the option description (if any). * @param cat Language ID for the option category (if any). */

Source from the content-addressed store, hash-verified

31 * @param cat Language ID for the option category (if any).
32 */
33OptionInfo::OptionInfo(const std::string &id, bool *option, bool def, const std::string &desc, const std::string &cat) : _id(id), _desc(desc), _cat(cat), _type(OPTION_BOOL)
34{
35 _ref.b = option;
36 _def.b = def;
37}
38
39/**
40 * Creates info for an integer option.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected