Exemplo n.º 1
0
        static int _m_Prepare(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    int _i = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Vector3[] _vectorPath = (UnityEngine.Vector3[])translator.GetObject(L, 3, typeof(UnityEngine.Vector3[]));

                    gen_to_be_invoked.Prepare(
                        _i,
                        _vectorPath);



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


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



                {
                    Pathfinding.AdvancedSmooth.Turn _turn; translator.Get(L, 2, out _turn);
                    System.Collections.Generic.List <UnityEngine.Vector3> _output = (System.Collections.Generic.List <UnityEngine.Vector3>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <UnityEngine.Vector3>));

                    gen_to_be_invoked.GetPath(
                        _turn,
                        _output);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemplo n.º 3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Pathfinding.AdvancedSmooth.ConstantTurn gen_ret = new Pathfinding.AdvancedSmooth.ConstantTurn();
                    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.AdvancedSmooth.ConstantTurn constructor!"));
        }
        static int _m_TangentToTangent(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    System.Collections.Generic.List <Pathfinding.AdvancedSmooth.Turn> _turnList = (System.Collections.Generic.List <Pathfinding.AdvancedSmooth.Turn>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <Pathfinding.AdvancedSmooth.Turn>));

                    gen_to_be_invoked.TangentToTangent(_turnList);



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