static int _m_SayHello1_xlua_st_(RealStatePtr L) { try { { CSModelWithAttribute.SayHello1( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { CSModelWithAttribute __cl_gen_ret = new CSModelWithAttribute(); 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 CSModelWithAttribute constructor!")); }
static int _m_SayHello2(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); CSModelWithAttribute __cl_gen_to_be_invoked = (CSModelWithAttribute)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.SayHello2( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SayHelloWithRefParam(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); CSModelWithAttribute __cl_gen_to_be_invoked = (CSModelWithAttribute)translator.FastGetCSObj(L, 1); try { { string s = LuaAPI.lua_tostring(L, 2); __cl_gen_to_be_invoked.SayHelloWithRefParam(ref s); LuaAPI.lua_pushstring(L, s); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }