diff options
| author | chai <chaifix@163.com> | 2018-12-04 10:13:03 +0800 | 
|---|---|---|
| committer | chai <chaifix@163.com> | 2018-12-04 10:13:03 +0800 | 
| commit | 8cd03a53878b9d67eb4b13fb546dbd989d8217e2 (patch) | |
| tree | d27371aa2d702705dd86d3c2d8a6c4bd8bd7ec96 /src/lua/common/je_lua_object.cpp | |
| parent | 7c0da0c1181ecf333aa784d4cce09bc160dfe908 (diff) | |
*proxy->lua object
Diffstat (limited to 'src/lua/common/je_lua_object.cpp')
| -rw-r--r-- | src/lua/common/je_lua_object.cpp | 32 | 
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lua/common/je_lua_object.cpp b/src/lua/common/je_lua_object.cpp new file mode 100644 index 0000000..ce71283 --- /dev/null +++ b/src/lua/common/je_lua_object.cpp @@ -0,0 +1,32 @@ +#include "je_lua.h" +#include "je_lua_object.h" + +namespace JinEngine +{ +    namespace Lua +    { + +        void LuaObject::bind(SharedBase* s) +        { +            if (s == nullptr) +                return; +            shared = s; +            shared->retain(); +        } + +        void LuaObject::release() +        { +            if (shared != nullptr) +            { +                shared->release(); +                shared = nullptr; +            } +        } + +        const char* LuaObject::getObjectType() +        { +            return shared->getType(); +        } + +    } +}
\ No newline at end of file  | 
