Files
fs2open.github.com/code/scripting/api/objs/LuaSEXP.h
T
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

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);
}
}