static int _m_Create(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); QP.Framework.LuaEnvMgr gen_to_be_invoked = (QP.Framework.LuaEnvMgr)translator.FastGetCSObj(L, 1); { UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); string _luaPath = LuaAPI.lua_tostring(L, 3); QP.Framework.LuaScript gen_ret = gen_to_be_invoked.Create(_go, _luaPath); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _s_set_LuaPath(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); QP.Framework.LuaScript gen_to_be_invoked = (QP.Framework.LuaScript)translator.FastGetCSObj(L, 1); gen_to_be_invoked.LuaPath = LuaAPI.lua_tostring(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_root(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); QP.Framework.LuaScript gen_to_be_invoked = (QP.Framework.LuaScript)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.root); } 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) == 1) { QP.Framework.LuaScript gen_ret = new QP.Framework.LuaScript(); translator.Push(L, 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 QP.Framework.LuaScript constructor!")); }
static int _m_Awake(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); QP.Framework.LuaScript gen_to_be_invoked = (QP.Framework.LuaScript)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Awake( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }