static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <object>(L, 2)) { object _pathsClaimedSilentlyBy = translator.GetObject(L, 2, typeof(object)); PF.PathReturnQueue gen_ret = new PF.PathReturnQueue(_pathsClaimedSilentlyBy); translator.Push(L, 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 PF.PathReturnQueue constructor!")); }
static int _m_ReturnPaths(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.PathReturnQueue gen_to_be_invoked = (PF.PathReturnQueue)translator.FastGetCSObj(L, 1); { bool _timeSlice = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.ReturnPaths(_timeSlice); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Enqueue(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.PathReturnQueue gen_to_be_invoked = (PF.PathReturnQueue)translator.FastGetCSObj(L, 1); { PF.Path _path = (PF.Path)translator.GetObject(L, 2, typeof(PF.Path)); gen_to_be_invoked.Enqueue(_path); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }