Exemple #1
0
        static int _m_HasPathTo(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



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

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



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

                PF.FloodPath gen_to_be_invoked = (PF.FloodPath)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.saveParents = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemple #3
0
        static int _s_set_startNode(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PF.FloodPath gen_to_be_invoked = (PF.FloodPath)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.startNode = (PF.GraphNode)translator.GetObject(L, 2, typeof(PF.GraphNode));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemple #4
0
        static int _g_get_startNode(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PF.FloodPath gen_to_be_invoked = (PF.FloodPath)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.startNode);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Exemple #5
0
        static int _s_set_startPoint(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PF.FloodPath        gen_to_be_invoked = (PF.FloodPath)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector3 gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.startPoint = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemple #6
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    PF.FloodPath gen_ret = new PF.FloodPath();
                    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.FloodPath constructor!"));
        }
        static int _m_Construct_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <PF.FloodPath>(L, 2) && translator.Assignable <PF.OnPathDelegate>(L, 3))
                {
                    UnityEngine.Vector3 _start; translator.Get(L, 1, out _start);
                    PF.FloodPath        _flood    = (PF.FloodPath)translator.GetObject(L, 2, typeof(PF.FloodPath));
                    PF.OnPathDelegate   _callback = translator.GetDelegate <PF.OnPathDelegate>(L, 3);

                    PF.FloodPathTracer gen_ret = PF.FloodPathTracer.Construct(
                        _start,
                        _flood,
                        _callback);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <PF.FloodPath>(L, 2))
                {
                    UnityEngine.Vector3 _start; translator.Get(L, 1, out _start);
                    PF.FloodPath        _flood = (PF.FloodPath)translator.GetObject(L, 2, typeof(PF.FloodPath));

                    PF.FloodPathTracer gen_ret = PF.FloodPathTracer.Construct(
                        _start,
                        _flood);
                    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.FloodPathTracer.Construct!"));
        }
Exemple #8
0
        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!"));
        }