mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 04:49:39 -10:00
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.
19 lines
263 B
C++
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;
|
|
}
|
|
|
|
}
|
|
|