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


                Pathfinding.SimpleSmoothModifier gen_to_be_invoked = (Pathfinding.SimpleSmoothModifier)translator.FastGetCSObj(L, 1);



                {
                    System.Collections.Generic.List <UnityEngine.Vector3> _path = (System.Collections.Generic.List <UnityEngine.Vector3>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Vector3>));

                    System.Collections.Generic.List <UnityEngine.Vector3> gen_ret = gen_to_be_invoked.SmoothBezier(
                        _path);
                    translator.Push(L, gen_ret);



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

                Pathfinding.SimpleSmoothModifier gen_to_be_invoked = (Pathfinding.SimpleSmoothModifier)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.factor = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Beispiel #3
0
        static int _g_get_offset(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.SimpleSmoothModifier gen_to_be_invoked = (Pathfinding.SimpleSmoothModifier)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.offset);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Beispiel #4
0
        static int _s_set_smoothType(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.SimpleSmoothModifier            gen_to_be_invoked = (Pathfinding.SimpleSmoothModifier)translator.FastGetCSObj(L, 1);
                Pathfinding.SimpleSmoothModifier.SmoothType gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.smoothType = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Beispiel #5
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Pathfinding.SimpleSmoothModifier gen_ret = new Pathfinding.SimpleSmoothModifier();
                    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 Pathfinding.SimpleSmoothModifier constructor!"));
        }
Beispiel #6
0
        static int _m_Apply(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.SimpleSmoothModifier gen_to_be_invoked = (Pathfinding.SimpleSmoothModifier)translator.FastGetCSObj(L, 1);



                {
                    PF.Path _p = (PF.Path)translator.GetObject(L, 2, typeof(PF.Path));

                    gen_to_be_invoked.Apply(_p);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }