Esempio n. 1
0
        static int _m_TargetFound(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                PF.EndingConditionDistance gen_to_be_invoked = (PF.EndingConditionDistance)translator.FastGetCSObj(L, 1);



                {
                    PF.PathNode _node = (PF.PathNode)translator.GetObject(L, 2, typeof(PF.PathNode));

                    bool gen_ret = gen_to_be_invoked.TargetFound(
                        _node);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 2
0
        static int _s_set_maxGScore(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PF.EndingConditionDistance gen_to_be_invoked = (PF.EndingConditionDistance)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.maxGScore = LuaAPI.xlua_tointeger(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <PF.Path>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    PF.Path _p         = (PF.Path)translator.GetObject(L, 2, typeof(PF.Path));
                    int     _maxGScore = LuaAPI.xlua_tointeger(L, 3);

                    PF.EndingConditionDistance gen_ret = new PF.EndingConditionDistance(_p, _maxGScore);
                    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.EndingConditionDistance constructor!"));
        }