11#include <unordered_map>
18#if CHECK_CLIENT_BUILD()
33 #if CHECK_CLIENT_BUILD()
34 static Client* getClient(lua_State *L);
35 static GUIEngine* getGuiEngine(lua_State *L);
51 T *scriptIfaceDowncast =
dynamic_cast<T*
>(scriptIface);
52 if (!scriptIfaceDowncast) {
53 throw LuaError(
"Requested unavailable ScriptApi - core engine bug!");
55 return scriptIfaceDowncast;
64 const luaL_Reg *methods,
65 const luaL_Reg *metamethods);
70 return *
reinterpret_cast<T**
>(luaL_checkudata(L, narg, T::className));
86 static int l_deprecated_function(lua_State *L,
const char *good,
const char *bad, lua_CFunction func);
Definition emerge_internal.h:25
Definition environment.h:34
implementation of main menu based uppon formspecs
Definition guiEngine.h:113
static bool registerFunction(lua_State *L, const char *name, lua_CFunction func, int top)
Definition l_base.cpp:82
static int l_deprecated_function(lua_State *L, const char *good, const char *bad, lua_CFunction func)
A wrapper for deprecated functions.
Definition l_base.cpp:116
static void registerClass(lua_State *L, const char *name, const luaL_Reg *methods, const luaL_Reg *metamethods)
Definition l_base.cpp:93
static ServerInventoryManager * getServerInventoryMgr(lua_State *L)
Definition l_base.cpp:34
static Server * getServer(lua_State *L)
Definition l_base.cpp:29
static IGameDef * getGameDef(lua_State *L)
Definition l_base.cpp:46
static std::string getCurrentModPath(lua_State *L)
Definition l_base.cpp:68
static ScriptApiBase * getScriptApiBase(lua_State *L)
Definition l_base.cpp:15
static Environment * getEnv(lua_State *L)
Definition l_base.cpp:51
static T * getScriptApi(lua_State *L)
Definition l_base.h:49
static EmergeThread * getEmergeThread(lua_State *L)
Definition l_base.cpp:63
static T * checkObject(lua_State *L, int narg)
Definition l_base.h:68
Definition serverinventorymgr.h:17