diff options
author | madmaxoft <github@xoft.cz> | 2013-10-23 13:31:04 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-23 13:31:04 +0200 |
commit | 88db43e8d39f068b4ef8e167fbfce9edf890bed1 (patch) | |
tree | d0db05c23fed1a79721cb002d29bd2da3c4d5937 /source/LuaWindow.h | |
parent | APIDump: Documented the cHopperEntity class. (diff) | |
download | cuberite-88db43e8d39f068b4ef8e167fbfce9edf890bed1.tar cuberite-88db43e8d39f068b4ef8e167fbfce9edf890bed1.tar.gz cuberite-88db43e8d39f068b4ef8e167fbfce9edf890bed1.tar.bz2 cuberite-88db43e8d39f068b4ef8e167fbfce9edf890bed1.tar.lz cuberite-88db43e8d39f068b4ef8e167fbfce9edf890bed1.tar.xz cuberite-88db43e8d39f068b4ef8e167fbfce9edf890bed1.tar.zst cuberite-88db43e8d39f068b4ef8e167fbfce9edf890bed1.zip |
Diffstat (limited to '')
-rw-r--r-- | source/LuaWindow.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/LuaWindow.h b/source/LuaWindow.h index 5a0685ebb..4c32c263e 100644 --- a/source/LuaWindow.h +++ b/source/LuaWindow.h @@ -23,8 +23,6 @@ class cPluginLua; -// tolua_begin - /** A window that has been created by a Lua plugin and is handled entirely by that plugin This object needs extra care with its lifetime management: - It is created by Lua, so Lua expects to garbage-collect it later @@ -35,9 +33,10 @@ Additionally, to forbid Lua from deleting this object while it is used by player cPlayer:OpenWindow check if the window is of this class, and if so, make a global Lua reference for this object. This reference needs to be unreferenced in the Destroy() function. */ -class cLuaWindow : - public cWindow, - public cItemGrid::cListener +class cLuaWindow : // tolua_export + public cItemGrid::cListener, + // tolua_begin + public cWindow { typedef cWindow super; |