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/modules/graphics/je_lua_animator.cpp | |
parent | 7c0da0c1181ecf333aa784d4cce09bc160dfe908 (diff) |
*proxy->lua object
Diffstat (limited to 'src/lua/modules/graphics/je_lua_animator.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_animator.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lua/modules/graphics/je_lua_animator.cpp b/src/lua/modules/graphics/je_lua_animator.cpp index 843204d..43a1f50 100644 --- a/src/lua/modules/graphics/je_lua_animator.cpp +++ b/src/lua/modules/graphics/je_lua_animator.cpp @@ -1,4 +1,4 @@ -#include "common/je_lua_proxy.h" +#include "common/je_lua_object.h" #include "common/je_lua_common.h" #include "libjin/jin.h" @@ -24,13 +24,13 @@ namespace JinEngine LUA_IMPLEMENT inline SharedAnimator checkAnimator(lua_State* L) { - Proxy* proxy = (Proxy*)luax_checktype(L, 1, Jin_Lua_Animator); - return proxy->getShared<Animator>(); + LuaObject* luaObj = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Animator); + return luaObj->getShared<Animator>(); } LUA_IMPLEMENT int l_gc(lua_State* L) { - Proxy* p = (Proxy*)luax_checktype(L, 1, Jin_Lua_Animation); + LuaObject* p = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Animation); p->release(); return 0; } @@ -86,8 +86,8 @@ namespace JinEngine LUA_IMPLEMENT int l_setAnimation(lua_State* L) { SharedAnimator shrAnimator = checkAnimator(L); - Proxy* proxy = (Proxy*)luax_checktype(L, 1, Jin_Lua_Animation); - Shared<Animation>& shrAnimation = proxy->getShared<Animation>(); + LuaObject* luaObj = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Animation); + Shared<Animation>& shrAnimation = luaObj->getShared<Animation>(); shrAnimator.setDependency((int)AnimatorDependency::DEP_ANIMATION, &shrAnimation); shrAnimator->setAnimation(shrAnimation.getObject()); return 0; |