diff options
author | chai <chaifix@163.com> | 2018-11-23 12:24:22 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-23 12:24:22 +0800 |
commit | 8d4e45c9a85175d0fc37d7d5c49ff90abb01fe4f (patch) | |
tree | 4ca2d0b34366293ad57d77c64e753c9013ccdc21 /src/lua/common/je_lua_proxy.cpp | |
parent | cfa05003be67344fbc79c338c2ac82f0accd979d (diff) |
*修改lua bind
Diffstat (limited to 'src/lua/common/je_lua_proxy.cpp')
-rw-r--r-- | src/lua/common/je_lua_proxy.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lua/common/je_lua_proxy.cpp b/src/lua/common/je_lua_proxy.cpp new file mode 100644 index 0000000..dc6df30 --- /dev/null +++ b/src/lua/common/je_lua_proxy.cpp @@ -0,0 +1,32 @@ +#include "je_lua.h" +#include "je_lua_proxy.h" + +namespace JinEngine +{ + namespace Lua + { + + void Proxy::bind(SharedBase* s) + { + if (s == nullptr) + return; + shared = s; + shared->retain(); + } + + void Proxy::release() + { + if (shared != nullptr) + { + shared->release(); + shared = nullptr; + } + } + + const char* Proxy::getObjectType() + { + return shared->type; + } + + } +}
\ No newline at end of file |