diff options
author | Samuel Barney <sbarney@instructure.com> | 2016-07-18 22:39:11 +0200 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2016-08-15 19:13:03 +0200 |
commit | 24e89bbb2c656224d06aed084b952bbc885e3914 (patch) | |
tree | ba75a68cce6ea868acba60ae08efeeccf003736d /src/ChannelCallback.h | |
parent | Switch out long download/compile links. (#3278) (diff) | |
download | cuberite-ChannelManagement.tar cuberite-ChannelManagement.tar.gz cuberite-ChannelManagement.tar.bz2 cuberite-ChannelManagement.tar.lz cuberite-ChannelManagement.tar.xz cuberite-ChannelManagement.tar.zst cuberite-ChannelManagement.zip |
Diffstat (limited to 'src/ChannelCallback.h')
-rw-r--r-- | src/ChannelCallback.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ChannelCallback.h b/src/ChannelCallback.h new file mode 100644 index 000000000..e9fc145f5 --- /dev/null +++ b/src/ChannelCallback.h @@ -0,0 +1,14 @@ +#include "Bindings/PluginLua.h" + +class cByteBuffer; + +class cChannelCallback +{ + cLuaState::cCallbackPtr m_Callback; + cPluginLua * m_Plugin; + cCriticalSection m_CSPlugin; +public: + cChannelCallback(cPluginLua & a_Plugin, cLuaState::cCallbackPtr & a_Callback); + void Call(cClientHandle & a_Handle, const cByteBuffer & a_Data); + bool BelongsTo(const cPluginLua * a_Plugin); +}; |