aboutsummaryrefslogtreecommitdiff
path: root/src/lua/common/je_lua_object.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-10 11:46:29 +0800
committerchai <chaifix@163.com>2018-12-10 11:46:29 +0800
commitce8e259441410aba3f2345333003032ed9c45d65 (patch)
treeb28b8a30e2b30081a2f9bdbf0a142099f7a8cd6f /src/lua/common/je_lua_object.h
parentb1dfdae7a071407ef5e2d56f2203f96e6ba6068d (diff)
*删除shared的lua类型信息
Diffstat (limited to 'src/lua/common/je_lua_object.h')
-rw-r--r--src/lua/common/je_lua_object.h12
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;
};