static int GetCalc(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Tutorial.DrivenClass __cl_gen_to_be_invoked = (Tutorial.DrivenClass)translator.FastGetCSObj(L, 1); try { { Tutorial.Calc __cl_gen_ret = __cl_gen_to_be_invoked.GetCalc( ); 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_GetCalc(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Tutorial.DrivenClass gen_to_be_invoked = (Tutorial.DrivenClass)translator.FastGetCSObj(L, 1); { Tutorial.ICalc gen_ret = gen_to_be_invoked.GetCalc( ); translator.PushAny(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }