Files
fs2open.github.com/code/parse/sexp/DynamicSEXP.cpp
asarium f780d9e22a Add ability to dynamically add new SEXPs at runtime
This add a system for adding generic instances of the DynamicSEXP class
to the SEXP system. The only implementation at the moment is the LuaSEXP
which is used by the mn.addSEXP lua API to allow Lua to add new SEXPs.

Since this requires that FRED also runs lua scripts I added a mod table
option to enable scripting in FRED. Since the current scripts are not
built with FRED in mind it would likely break all these scripts if FRED
would be opened with normal scripting enabled.

This fixes #1320.
2017-12-20 10:45:40 +01:00

19 lines
263 B
C++

//
//
#include "DynamicSEXP.h"
namespace sexp {
DynamicSEXP::DynamicSEXP(const SCP_string& name) : _name(name) {
}
const SCP_string& DynamicSEXP::getName() const {
return _name;
}
const SCP_string& DynamicSEXP::getHelpText() const {
return _help_text;
}
}