aboutsummaryrefslogtreecommitdiff
path: root/src/lua/common/je_lua_proxy.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-04 10:13:03 +0800
committerchai <chaifix@163.com>2018-12-04 10:13:03 +0800
commit8cd03a53878b9d67eb4b13fb546dbd989d8217e2 (patch)
treed27371aa2d702705dd86d3c2d8a6c4bd8bd7ec96 /src/lua/common/je_lua_proxy.h
parent7c0da0c1181ecf333aa784d4cce09bc160dfe908 (diff)
*proxy->lua object
Diffstat (limited to 'src/lua/common/je_lua_proxy.h')
-rw-r--r--src/lua/common/je_lua_proxy.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/lua/common/je_lua_proxy.h b/src/lua/common/je_lua_proxy.h
deleted file mode 100644
index 517e209..0000000
--- a/src/lua/common/je_lua_proxy.h
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __JIN_COMMON_PROXY_H__
-#define __JIN_COMMON_PROXY_H__
-
-#include "je_lua_shared.hpp"
-
-struct lua_State;
-
-namespace JinEngine
-{
- namespace Lua
- {
-
- class Proxy
- {
- public:
- ///
- /// Set lua_State and object it bind.
- ///
- void bind(SharedBase* s);
-
- void release();
-
- const char* getObjectType();
-
- template<class T>
- Shared<T>& getShared()
- {
- return *(Shared<T>*)shared;
- }
-
- SharedBase* getSharedBase()
- {
- return shared;
- }
-
- ///
- /// For convenience.
- ///
- template<class T>
- T* getObject()
- {
- Shared<T>& shared = getShared<T>();
- return shared.getObject();
- }
-
- private:
- ///
- ///
- ///
- SharedBase* shared;
-
- };
-
- } // namespace Lua
-} // namespace JinEngine
-
-#endif // __JIN_COMMON_PROXY_H__ \ No newline at end of file