diff options
author | chai <chaifix@163.com> | 2018-11-13 08:27:26 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-13 08:27:26 +0800 |
commit | 75792c15480d3d99b2ba7e79e143e4b569b22611 (patch) | |
tree | 61e3abc45326c67d348e08400da11f60dff18fa3 /src/lua/common/je_lua_callback.h | |
parent | c7e59fb376453e5abad8c862b52eb0f4c7ba829b (diff) |
*修改lua ref
Diffstat (limited to 'src/lua/common/je_lua_callback.h')
-rw-r--r-- | src/lua/common/je_lua_callback.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/lua/common/je_lua_callback.h b/src/lua/common/je_lua_callback.h new file mode 100644 index 0000000..f3301fc --- /dev/null +++ b/src/lua/common/je_lua_callback.h @@ -0,0 +1,67 @@ +#ifndef __JIN_COMMON_FUNCTION_H +#define __JIN_COMMON_FUNCTION_H + +#include <vector> + +#include "libjin/jin.h" +#include "../luax.h" +#include "je_lua_reference.h" + +namespace JinEngine +{ + namespace Lua + { + + /// + /// + /// + class LuaCallback + { + public: + /// + /// + /// + LuaCallback(lua_State* L); + + /// + /// + /// + ~LuaCallback(); + + /// + /// + /// + void setFunc(int i); + + /// + /// + /// + void pushParam(int i); + + /// + /// + /// + void call(); + + private: + /// + /// + /// + LuaRef* mLuaFunc; + + /// + /// + /// + std::vector<LuaRef*> mParams; + + /// + /// + /// + lua_State* const mL; + + }; + + } // namespace Lua +} // namespace JinEngine + +#endif // __JIN_COMMON_REFERENCE_H
\ No newline at end of file |