static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *__ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new UnityEngine.AreaEffector2D();

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
        static int _g_get_useGlobalAngle(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

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

                UnityEngine.AreaEffector2D gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.forceTarget);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _g_get_forceAngle(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.AreaEffector2D __cl_gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, __cl_gen_to_be_invoked.forceAngle);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
        static int _s_set_forceVariation(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.AreaEffector2D __cl_gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.forceVariation = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _s_set_useGlobalAngle(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

                UnityEngine.AreaEffector2D      gen_to_be_invoked = (UnityEngine.AreaEffector2D)translator.FastGetCSObj(L, 1);
                UnityEngine.EffectorSelection2D gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.forceTarget = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
示例#9
0
 public override void ReadFrom(object obj)
 {
     base.ReadFrom(obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.AreaEffector2D o = (UnityEngine.AreaEffector2D)obj;
     forceAngle     = o.forceAngle;
     useGlobalAngle = o.useGlobalAngle;
     forceMagnitude = o.forceMagnitude;
     forceVariation = o.forceVariation;
     drag           = o.drag;
     angularDrag    = o.angularDrag;
     forceTarget    = (uint)o.forceTarget;
 }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.AreaEffector2D gen_ret = new UnityEngine.AreaEffector2D();
                    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 UnityEngine.AreaEffector2D constructor!"));
        }
示例#11
0
 public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects)
 {
     obj = base.WriteTo(obj, objects);
     if (obj == null)
     {
         return(null);
     }
     UnityEngine.AreaEffector2D o = (UnityEngine.AreaEffector2D)obj;
     o.forceAngle     = forceAngle;
     o.useGlobalAngle = useGlobalAngle;
     o.forceMagnitude = forceMagnitude;
     o.forceVariation = forceVariation;
     o.drag           = drag;
     o.angularDrag    = angularDrag;
     o.forceTarget    = (UnityEngine.EffectorSelection2D)forceTarget;
     return(o);
 }