public void __Gen_Delegate_Imp17(int p0, JW.PLink.PrefabLink p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int err_func = LuaAPI.load_error_func(L, errorFuncRef); ObjectTranslator translator = luaEnv.translator; LuaAPI.lua_getref(L, luaReference); LuaAPI.xlua_pushinteger(L, p0); translator.Push(L, p1); int __gen_error = LuaAPI.lua_pcall(L, 2, 0, err_func); if (__gen_error != 0) { luaEnv.ThrowExceptionFromError(err_func - 1); } LuaAPI.lua_settop(L, err_func - 1); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
static int _s_set_Elements(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.PLink.PrefabLink __cl_gen_to_be_invoked = (JW.PLink.PrefabLink)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.Elements = (JW.PLink.PrefabElement[])translator.GetObject(L, 2, typeof(JW.PLink.PrefabElement[])); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { JW.PLink.PrefabLink __cl_gen_ret = new JW.PLink.PrefabLink(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to JW.PLink.PrefabLink constructor!")); }
static int _m_GetCacheComponent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.PLink.PrefabLink __cl_gen_to_be_invoked = (JW.PLink.PrefabLink)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int index = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Component __cl_gen_ret = __cl_gen_to_be_invoked.GetCacheComponent(index); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { int index = LuaAPI.xlua_tointeger(L, 2); string typeName = LuaAPI.lua_tostring(L, 3); UnityEngine.Component __cl_gen_ret = __cl_gen_to_be_invoked.GetCacheComponent(index, typeName); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to JW.PLink.PrefabLink.GetCacheComponent!")); }
static int _m_GetPrefabLink(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XH.SlotScroll.SlotScrollGrid __cl_gen_to_be_invoked = (XH.SlotScroll.SlotScrollGrid)translator.FastGetCSObj(L, 1); { JW.PLink.PrefabLink __cl_gen_ret = __cl_gen_to_be_invoked.GetPrefabLink( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetCacheTransform(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.PLink.PrefabLink __cl_gen_to_be_invoked = (JW.PLink.PrefabLink)translator.FastGetCSObj(L, 1); { int index = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Transform __cl_gen_ret = __cl_gen_to_be_invoked.GetCacheTransform(index); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }