Пример #1
0
        static int _m_DistanceSquared(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Core.FMath.FVec2 __cl_gen_to_be_invoked; translator.Get(L, 1, out __cl_gen_to_be_invoked);



                {
                    Core.FMath.FVec2 vector; translator.Get(L, 2, out vector);

                    Core.FMath.Fix64 __cl_gen_ret = __cl_gen_to_be_invoked.DistanceSquared(vector);
                    translator.Push(L, __cl_gen_ret);


                    translator.Update(L, 1, __cl_gen_to_be_invoked);


                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #2
0
        static int _m_Dot(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Core.FMath.FVec2 __cl_gen_to_be_invoked; translator.Get(L, 1, out __cl_gen_to_be_invoked);


                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count == 1)
                {
                    Core.FMath.Fix64 __cl_gen_ret = __cl_gen_to_be_invoked.Dot(  );
                    translator.Push(L, __cl_gen_ret);


                    translator.Update(L, 1, __cl_gen_to_be_invoked);


                    return(1);
                }
                if (__gen_param_count == 2 && translator.Assignable <Core.FMath.FVec2>(L, 2))
                {
                    Core.FMath.FVec2 vector; translator.Get(L, 2, out vector);

                    Core.FMath.Fix64 __cl_gen_ret = __cl_gen_to_be_invoked.Dot(vector);
                    translator.Push(L, __cl_gen_ret);


                    translator.Update(L, 1, __cl_gen_to_be_invoked);


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

            return(LuaAPI.luaL_error(L, "invalid arguments to Core.FMath.FVec2.Dot!"));
        }
Пример #3
0
        static int _m_DistanceSquared_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    Core.FMath.FVec2 v0; translator.Get(L, 1, out v0);
                    Core.FMath.FVec2 v1; translator.Get(L, 2, out v1);

                    Core.FMath.Fix64 __cl_gen_ret = Core.FMath.FVec2.DistanceSquared(v0, v1);
                    translator.Push(L, __cl_gen_ret);



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