diff options
author | chai <chaifix@163.com> | 2021-10-23 00:31:25 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-23 00:31:25 +0800 |
commit | df0444f85f9bf623cc886e1632e624ef20cb0f1b (patch) | |
tree | 4aff1454312540f137bb318349b48e58d9b06d80 /Editor/EditorMain.cpp | |
parent | 4dafefe46a72ba47468b13d011f8299055081b0f (diff) |
-member table
Diffstat (limited to 'Editor/EditorMain.cpp')
-rw-r--r-- | Editor/EditorMain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Editor/EditorMain.cpp b/Editor/EditorMain.cpp index 95937a7..7ca90ad 100644 --- a/Editor/EditorMain.cpp +++ b/Editor/EditorMain.cpp @@ -15,7 +15,7 @@ void ErrorHandle(cc8* msg) log_error(std::string("[Lua] ") + msg);
}
-void OnRegisterFactoryClass(LuaBind::State& state, int cls, std::string clsName, std::string pkgName)
+void OnRegisterNativeClass(LuaBind::State& state, int cls, std::string clsName, std::string pkgName)
{
// 填充类型的元数据
lua_newtable(state);
@@ -35,7 +35,7 @@ void InitLuaState() vm.Setup();
vm.OpenLibs();
- LuaBind::onRegisterFactoryClass = OnRegisterFactoryClass;
+ LuaBind::onRegisterNativeClass = OnRegisterNativeClass;
if (!SetupGameLabEditorScripting(vm.GetMainThread()))
{
|