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


                UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.TriggerSubEmitter(_subEmitterIndex);



                    return(0);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.ParticleSystem.Particle>(L, 3))
                {
                    int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.ParticleSystem.Particle _particle; translator.Get(L, 3, out _particle);

                    gen_to_be_invoked.TriggerSubEmitter(_subEmitterIndex, ref _particle);
                    translator.Push(L, _particle);
                    translator.Update(L, 3, _particle);



                    return(1);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> >(L, 3))
                {
                    int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2);
                    System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> _particles = (System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle>));

                    gen_to_be_invoked.TriggerSubEmitter(_subEmitterIndex, _particles);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.TriggerSubEmitter!"));
        }
        static int _s_set_clip(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.Animation __cl_gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.clip = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _s_set_localBounds(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.Animation __cl_gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1);
                UnityEngine.Bounds    __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.localBounds = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Beispiel #4
0
        static int _m_GetAsset(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.ResourcesComponent gen_to_be_invoked = (DCET.Model.ResourcesComponent)translator.FastGetCSObj(L, 1);



                {
                    string _bundleName = LuaAPI.lua_tostring(L, 2);
                    string _prefab     = LuaAPI.lua_tostring(L, 3);

                    UnityEngine.Object gen_ret = gen_to_be_invoked.GetAsset(_bundleName, _prefab);
                    translator.Push(L, gen_ret);



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

            try {
                UnityEngine.Animation __cl_gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.playAutomatically);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Beispiel #6
0
        static int _m_AddResource(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.ResourcesComponent gen_to_be_invoked = (DCET.Model.ResourcesComponent)translator.FastGetCSObj(L, 1);



                {
                    string             _bundleName = LuaAPI.lua_tostring(L, 2);
                    string             _assetName  = LuaAPI.lua_tostring(L, 3);
                    UnityEngine.Object _resource   = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object));

                    gen_to_be_invoked.AddResource(_bundleName, _assetName, _resource);



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


                DCET.Model.ResourcesComponent gen_to_be_invoked = (DCET.Model.ResourcesComponent)translator.FastGetCSObj(L, 1);



                {
                    string gen_ret = gen_to_be_invoked.DebugString(  );
                    LuaAPI.lua_pushstring(L, gen_ret);



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


                UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1);



                {
                    int _count = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.SetBoundingSphereCount(_count);



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


                UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 4 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && translator.Assignable <int[]>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    bool  _visible    = LuaAPI.lua_toboolean(L, 2);
                    int[] _result     = (int[])translator.GetObject(L, 3, typeof(int[]));
                    int   _firstIndex = LuaAPI.xlua_tointeger(L, 4);

                    int gen_ret = gen_to_be_invoked.QueryIndices(_visible, _result, _firstIndex);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <int[]>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    int   _distanceIndex = LuaAPI.xlua_tointeger(L, 2);
                    int[] _result        = (int[])translator.GetObject(L, 3, typeof(int[]));
                    int   _firstIndex    = LuaAPI.xlua_tointeger(L, 4);

                    int gen_ret = gen_to_be_invoked.QueryIndices(_distanceIndex, _result, _firstIndex);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 5 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <int[]>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
                {
                    bool  _visible       = LuaAPI.lua_toboolean(L, 2);
                    int   _distanceIndex = LuaAPI.xlua_tointeger(L, 3);
                    int[] _result        = (int[])translator.GetObject(L, 4, typeof(int[]));
                    int   _firstIndex    = LuaAPI.xlua_tointeger(L, 5);

                    int gen_ret = gen_to_be_invoked.QueryIndices(_visible, _distanceIndex, _result, _firstIndex);
                    LuaAPI.xlua_pushinteger(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 UnityEngine.CullingGroup.QueryIndices!"));
        }
        static int _m_Update(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                ETCold.ThreadSynchronizationContext gen_to_be_invoked = (ETCold.ThreadSynchronizationContext)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Update(  );



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


                ETCold.ThreadSynchronizationContext gen_to_be_invoked = (ETCold.ThreadSynchronizationContext)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <System.Action>(L, 2))
                {
                    System.Action _action = translator.GetDelegate <System.Action>(L, 2);

                    gen_to_be_invoked.Post(
                        _action);



                    return(0);
                }
                if (gen_param_count == 3 && translator.Assignable <System.Threading.SendOrPostCallback>(L, 2) && translator.Assignable <object>(L, 3))
                {
                    System.Threading.SendOrPostCallback _callback = translator.GetDelegate <System.Threading.SendOrPostCallback>(L, 2);
                    object _state = translator.GetObject(L, 3, typeof(object));

                    gen_to_be_invoked.Post(
                        _callback,
                        _state);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to ETCold.ThreadSynchronizationContext.Post!"));
        }
        static int _m_PostNext(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                ETCold.ThreadSynchronizationContext gen_to_be_invoked = (ETCold.ThreadSynchronizationContext)translator.FastGetCSObj(L, 1);



                {
                    System.Action _action = translator.GetDelegate <System.Action>(L, 2);

                    gen_to_be_invoked.PostNext(
                        _action);



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

                UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.trigger);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Beispiel #14
0
        static int _g_get_proceduralSimulationSupported(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.proceduralSimulationSupported);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Beispiel #15
0
        static int _m_Type(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.ILateUpdateSystem gen_to_be_invoked = (DCET.Model.ILateUpdateSystem)translator.FastGetCSObj(L, 1);



                {
                    System.Type gen_ret = gen_to_be_invoked.Type(  );
                    translator.Push(L, gen_ret);



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


                UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1);



                {
                    int _index = LuaAPI.xlua_tointeger(L, 2);

                    int gen_ret = gen_to_be_invoked.GetDistance(_index);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



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


                DCET.Model.ILateUpdateSystem gen_to_be_invoked = (DCET.Model.ILateUpdateSystem)translator.FastGetCSObj(L, 1);



                {
                    object _o = translator.GetObject(L, 2, typeof(object));

                    gen_to_be_invoked.Run(_o);



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


                UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 2))
                {
                    UnityEngine.Vector3 _point; translator.Get(L, 2, out _point);

                    gen_to_be_invoked.SetDistanceReferencePoint(_point);



                    return(0);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Transform>(L, 2))
                {
                    UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));

                    gen_to_be_invoked.SetDistanceReferencePoint(_transform);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CullingGroup.SetDistanceReferencePoint!"));
        }
Beispiel #19
0
        static int _m_LoadOneBundleAsync(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.ResourcesComponent gen_to_be_invoked = (DCET.Model.ResourcesComponent)translator.FastGetCSObj(L, 1);



                {
                    string _assetBundleName = LuaAPI.lua_tostring(L, 2);

                    DCET.Model.ETTask gen_ret = gen_to_be_invoked.LoadOneBundleAsync(_assetBundleName);
                    translator.Push(L, gen_ret);



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

                UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.onStateChanged);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Beispiel #21
0
        static int _m_Dispose(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.ResourcesComponent gen_to_be_invoked = (DCET.Model.ResourcesComponent)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Dispose(  );



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

                UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _m_CrossFadeQueued(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.Animation __cl_gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string animation = LuaAPI.lua_tostring(L, 2);

                    UnityEngine.AnimationState __cl_gen_ret = __cl_gen_to_be_invoked.CrossFadeQueued(animation);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    string animation  = LuaAPI.lua_tostring(L, 2);
                    float  fadeLength = (float)LuaAPI.lua_tonumber(L, 3);

                    UnityEngine.AnimationState __cl_gen_ret = __cl_gen_to_be_invoked.CrossFadeQueued(animation, fadeLength);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.QueueMode>(L, 4))
                {
                    string animation  = LuaAPI.lua_tostring(L, 2);
                    float  fadeLength = (float)LuaAPI.lua_tonumber(L, 3);
                    UnityEngine.QueueMode queue; translator.Get(L, 4, out queue);

                    UnityEngine.AnimationState __cl_gen_ret = __cl_gen_to_be_invoked.CrossFadeQueued(animation, fadeLength, queue);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.QueueMode>(L, 4) && translator.Assignable <UnityEngine.PlayMode>(L, 5))
                {
                    string animation  = LuaAPI.lua_tostring(L, 2);
                    float  fadeLength = (float)LuaAPI.lua_tonumber(L, 3);
                    UnityEngine.QueueMode queue; translator.Get(L, 4, out queue);
                    UnityEngine.PlayMode  mode; translator.Get(L, 5, out mode);

                    UnityEngine.AnimationState __cl_gen_ret = __cl_gen_to_be_invoked.CrossFadeQueued(animation, fadeLength, queue, mode);
                    translator.Push(L, __cl_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 UnityEngine.Animation.CrossFadeQueued!"));
        }
Beispiel #24
0
        static int _s_set_targetCamera(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.targetCamera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_localBounds(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.Animation __cl_gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineBounds(L, __cl_gen_to_be_invoked.localBounds);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Beispiel #26
0
        static int _m_Dispose(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Dispose(  );



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

            try {
                UnityEngine.Animation __cl_gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.animatePhysics = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Beispiel #28
0
        static int _m_SetBoundingSpheres(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.CullingGroup gen_to_be_invoked = (UnityEngine.CullingGroup)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.BoundingSphere[] _array = (UnityEngine.BoundingSphere[])translator.GetObject(L, 2, typeof(UnityEngine.BoundingSphere[]));

                    gen_to_be_invoked.SetBoundingSpheres(_array);



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

                UnityEngine.DistanceJoint2D gen_to_be_invoked = (UnityEngine.DistanceJoint2D)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.autoConfigureDistance = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Beispiel #30
0
        static int _m_Emit(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _count = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.Emit(_count);



                    return(0);
                }
                if (gen_param_count == 3 && translator.Assignable <UnityEngine.ParticleSystem.EmitParams>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    UnityEngine.ParticleSystem.EmitParams _emitParams; translator.Get(L, 2, out _emitParams);
                    int _count = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.Emit(_emitParams, _count);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Emit!"));
        }