diff options
author | chai <chaifix@163.com> | 2018-12-10 11:46:29 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-10 11:46:29 +0800 |
commit | ce8e259441410aba3f2345333003032ed9c45d65 (patch) | |
tree | b28b8a30e2b30081a2f9bdbf0a142099f7a8cd6f /src/lua/common/je_lua_object.h | |
parent | b1dfdae7a071407ef5e2d56f2203f96e6ba6068d (diff) |
*删除shared的lua类型信息
Diffstat (limited to 'src/lua/common/je_lua_object.h')
-rw-r--r-- | src/lua/common/je_lua_object.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lua/common/je_lua_object.h b/src/lua/common/je_lua_object.h index a81f57c..6e86508 100644 --- a/src/lua/common/je_lua_object.h +++ b/src/lua/common/je_lua_object.h @@ -31,19 +31,19 @@ namespace JinEngine return shared->getObject<T>(); } - void setDependency(uint key, Shared* shared); + void setDependency(uint key, LuaObject* dep); void removeDependency(uint key); - void removeDependency(Shared* dep); + void removeDependency(LuaObject* dep); bool isDependOn(uint key); - bool isDependOn(Shared* shared); + bool isDependOn(LuaObject* shared); void clearDependencies(); - Shared* getDependency(uint key); + LuaObject* getDependency(uint key); int getDependenciesCount(); @@ -51,12 +51,14 @@ namespace JinEngine // Lua state object. ////////////////////////////////////////////////////////////////////////////////////////////////////// - using DepsMap = std::map<uint, Shared*>; + using DepsMap = std::map<uint, LuaObject*>; lua_State* state; Shared* shared; + const char* type; + DepsMap* dependencies; }; |