diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-30 22:40:43 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-30 22:40:43 +0200 |
commit | 2eb1240e14986e1cccc02a96713133a003347f8b (patch) | |
tree | 28c58a677423d507ab57e421b9fcb8df8b31c5e0 /source/Plugin_NewLua.h | |
parent | Window contents are sent whenever the window is opened by a player. (diff) | |
download | cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.gz cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.bz2 cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.lz cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.xz cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.zst cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Plugin_NewLua.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/Plugin_NewLua.h b/source/Plugin_NewLua.h index acc43c7a4..fc3565bbc 100644 --- a/source/Plugin_NewLua.h +++ b/source/Plugin_NewLua.h @@ -11,8 +11,12 @@ +// fwd: Lua typedef struct lua_State lua_State; +// fwd: UI/Window.h +class cWindow; + @@ -101,6 +105,9 @@ public: /// Removes a previously referenced object (luaL_unref()) void Unreference(int a_LuaRef); + /// Calls the plugin-specified "cLuaWindow closing" callback. Returns true only if the callback returned true + bool CallbackWindowClosing(int a_FnRef, cWindow & a_Window, cPlayer & a_Player); + protected: cCriticalSection m_CriticalSection; lua_State * m_LuaState; |