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.GameInitState __cl_gen_ret = new xc.GameInitState(machine); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <xc.Machine>(L, 2) && translator.Assignable <xc.Machine.State>(L, 3)) { xc.Machine machine = (xc.Machine)translator.GetObject(L, 2, typeof(xc.Machine)); xc.Machine.State owner = (xc.Machine.State)translator.GetObject(L, 3, typeof(xc.Machine.State)); xc.GameInitState __cl_gen_ret = new xc.GameInitState(machine, owner); 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.GameInitState constructor!")); }
static int _m_Exit(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.GameInitState __cl_gen_to_be_invoked = (xc.GameInitState)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)); } }