static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <xc.Machine>(L, 2)) { xc.Machine machine = (xc.Machine)translator.GetObject(L, 2, typeof(xc.Machine)); xc.PlayingTestState __cl_gen_ret = new xc.PlayingTestState(machine); 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 xc.PlayingTestState constructor!")); }
static int _m_Exit(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.PlayingTestState __cl_gen_to_be_invoked = (xc.PlayingTestState)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.Exit( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_OnMonsterDead(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.PlayingTestState __cl_gen_to_be_invoked = (xc.PlayingTestState)translator.FastGetCSObj(L, 1); try { { CEventBaseArgs data = (CEventBaseArgs)translator.GetObject(L, 2, typeof(CEventBaseArgs)); __cl_gen_to_be_invoked.OnMonsterDead(data); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }