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.
23 lines
291 B
C++
23 lines
291 B
C++
#pragma once
|
|
|
|
#include "scripting/ade_api.h"
|
|
#include "parse/sexp/LuaSEXP.h"
|
|
|
|
namespace scripting {
|
|
namespace api {
|
|
|
|
struct lua_sexp_h {
|
|
sexp::LuaSEXP* sexp_handle;
|
|
|
|
lua_sexp_h(sexp::LuaSEXP* sexp_handle);
|
|
lua_sexp_h();
|
|
|
|
bool isValid();
|
|
};
|
|
|
|
DECLARE_ADE_OBJ(l_LuaSEXP, lua_sexp_h);
|
|
|
|
}
|
|
}
|
|
|