static int _m_Suitable(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.FloodPathConstraint gen_to_be_invoked = (PF.FloodPathConstraint)translator.FastGetCSObj(L, 1); { PF.GraphNode _node = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode)); bool gen_ret = gen_to_be_invoked.Suitable( _node); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <PF.FloodPath>(L, 2)) { PF.FloodPath _path = (PF.FloodPath)translator.GetObject(L, 2, typeof(PF.FloodPath)); PF.FloodPathConstraint gen_ret = new PF.FloodPathConstraint(_path); 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.FloodPathConstraint constructor!")); }