public void __Gen_Delegate_Imp16(Game.SceneItem p0) { #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); translator.Push(L, p0); int __gen_error = LuaAPI.lua_pcall(L, 1, 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 _m_Load(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Game.SceneItem __cl_gen_to_be_invoked = (Game.SceneItem)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && translator.Assignable <System.Action>(L, 2)) { System.Action done = translator.GetDelegate <System.Action>(L, 2); __cl_gen_to_be_invoked.Load(done); return(0); } if (__gen_param_count == 1) { __cl_gen_to_be_invoked.Load( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to Game.SceneItem.Load!")); }
static int _g_get_info(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Game.SceneItem __cl_gen_to_be_invoked = (Game.SceneItem)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.info); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string res = LuaAPI.lua_tostring(L, 2); Game.SceneItem __cl_gen_ret = new Game.SceneItem(res); 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 Game.SceneItem constructor!")); }
static int _m_Release(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Game.SceneItem __cl_gen_to_be_invoked = (Game.SceneItem)translator.FastGetCSObj(L, 1); { __cl_gen_to_be_invoked.Release( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_PlayDefaultAnim(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Game.SceneItem __cl_gen_to_be_invoked = (Game.SceneItem)translator.FastGetCSObj(L, 1); { float __cl_gen_ret = __cl_gen_to_be_invoked.PlayDefaultAnim( ); LuaAPI.lua_pushnumber(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_EnableObstacle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Game.SceneItem __cl_gen_to_be_invoked = (Game.SceneItem)translator.FastGetCSObj(L, 1); { bool bEnable = LuaAPI.lua_toboolean(L, 2); __cl_gen_to_be_invoked.EnableObstacle(bEnable); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetMount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Game.SceneItem __cl_gen_to_be_invoked = (Game.SceneItem)translator.FastGetCSObj(L, 1); { int mountTag = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Transform __cl_gen_ret = __cl_gen_to_be_invoked.GetMount(mountTag); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }