static int _m_CallLuaFunction(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaRun __cl_gen_to_be_invoked = (LuaRun)translator.FastGetCSObj(L, 1); { string funName = LuaAPI.lua_tostring(L, 2); object[] objs = translator.GetParams <object>(L, 3); object[] __cl_gen_ret = __cl_gen_to_be_invoked.CallLuaFunction(funName, objs); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _g_get_textFile(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaRun __cl_gen_to_be_invoked = (LuaRun)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.textFile); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_luaName(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaRun __cl_gen_to_be_invoked = (LuaRun)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.luaName = LuaAPI.lua_tostring(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_textFile(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaRun __cl_gen_to_be_invoked = (LuaRun)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.textFile = (UnityEngine.TextAsset)translator.GetObject(L, 2, typeof(UnityEngine.TextAsset)); } 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) { LuaRun __cl_gen_ret = new LuaRun(); 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 LuaRun constructor!")); }