diff options
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 |