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

                PF.RandomPath gen_to_be_invoked = (PF.RandomPath)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.aimStrength = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemple #2
0
        static int _g_get_aim(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

                PF.RandomPath gen_to_be_invoked = (PF.RandomPath)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.spread);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Exemple #4
0
        static int _s_set_aim(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PF.RandomPath       gen_to_be_invoked = (PF.RandomPath)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector3 gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.aim = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemple #5
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    PF.RandomPath gen_ret = new PF.RandomPath();
                    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.RandomPath constructor!"));
        }
Exemple #6
0
        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) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <PF.OnPathDelegate>(L, 3))
                {
                    UnityEngine.Vector3 _start; translator.Get(L, 1, out _start);
                    int _length = LuaAPI.xlua_tointeger(L, 2);
                    PF.OnPathDelegate _callback = translator.GetDelegate <PF.OnPathDelegate>(L, 3);

                    PF.RandomPath gen_ret = PF.RandomPath.Construct(
                        _start,
                        _length,
                        _callback);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    UnityEngine.Vector3 _start; translator.Get(L, 1, out _start);
                    int _length = LuaAPI.xlua_tointeger(L, 2);

                    PF.RandomPath gen_ret = PF.RandomPath.Construct(
                        _start,
                        _length);
                    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.RandomPath.Construct!"));
        }