diff options
author | Mattes D <github@xoft.cz> | 2016-07-06 20:52:04 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-08-13 21:16:21 +0200 |
commit | 2d58789d66f1b63ad63304584c7ac43284b540b8 (patch) | |
tree | 19971f79b2be805f5b40b723a50ed1b4a07cd9fb /src/Bindings/LuaServerHandle.h | |
parent | Revert "Added a BasicStyleCheck for virtual functions without override keyword." (diff) | |
download | cuberite-2d58789d66f1b63ad63304584c7ac43284b540b8.tar cuberite-2d58789d66f1b63ad63304584c7ac43284b540b8.tar.gz cuberite-2d58789d66f1b63ad63304584c7ac43284b540b8.tar.bz2 cuberite-2d58789d66f1b63ad63304584c7ac43284b540b8.tar.lz cuberite-2d58789d66f1b63ad63304584c7ac43284b540b8.tar.xz cuberite-2d58789d66f1b63ad63304584c7ac43284b540b8.tar.zst cuberite-2d58789d66f1b63ad63304584c7ac43284b540b8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/LuaServerHandle.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Bindings/LuaServerHandle.h b/src/Bindings/LuaServerHandle.h index 9325bca3e..7632669ff 100644 --- a/src/Bindings/LuaServerHandle.h +++ b/src/Bindings/LuaServerHandle.h @@ -10,7 +10,7 @@ #pragma once #include "../OSSupport/Network.h" -#include "PluginLua.h" +#include "LuaState.h" @@ -31,8 +31,8 @@ class cLuaServerHandle: { public: /** Creates a new instance of the server handle, - attached to the specified lua plugin and wrapping the (listen-) callbacks that are in a table at the specified stack pos. */ - cLuaServerHandle(UInt16 a_Port, cPluginLua & a_Plugin, int a_CallbacksTableStackPos); + wrapping the (listen-) callbacks that are in the specified table. */ + cLuaServerHandle(UInt16 a_Port, cLuaState::cTableRefPtr && a_Callbacks); ~cLuaServerHandle(); @@ -54,11 +54,8 @@ public: void Release(void); protected: - /** The plugin for which the server is created. */ - cPluginLua & m_Plugin; - /** The Lua table that holds the callbacks to be invoked. */ - cLuaState::cRef m_Callbacks; + cLuaState::cTableRefPtr m_Callbacks; /** The port on which the server is listening. Used mainly for better error reporting. */ |