static int _s_set_luaScript(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BoyLuaBehaviour __cl_gen_to_be_invoked = (BoyLuaBehaviour)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.luaScript = (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 _g_get_injections(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BoyLuaBehaviour __cl_gen_to_be_invoked = (BoyLuaBehaviour)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.injections); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_injections(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BoyLuaBehaviour __cl_gen_to_be_invoked = (BoyLuaBehaviour)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.injections = (BoyInjection[])translator.GetObject(L, 2, typeof(BoyInjection[])); } 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) { BoyLuaBehaviour __cl_gen_ret = new BoyLuaBehaviour(); 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 BoyLuaBehaviour constructor!")); }