Files
fs2open.github.com/code/scripting/doc_parser.h
T
asarium 15db77d7fe Add capability to have comments in scripting args
Putting something between /* and */ behind a parameter will make that
appear in the HTML and JSON output now.
2020-06-13 21:03:22 +02:00

28 lines
449 B
C++

#pragma once
#include "globalincs/pstypes.h"
#include "ade_doc.h"
namespace scripting {
struct argument_def {
ade_type_info type;
SCP_string name;
SCP_string def_val;
bool optional = false;
SCP_string comment;
};
class argument_list_parser {
public:
bool parse(const SCP_string& argumentList);
const SCP_vector<scripting::argument_def>& getArgList() const;
private:
SCP_vector<argument_def> _argList;
};
} // namespace scripting