Esempio n. 1
0
        public static int __NewIndexer(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (translator.Assignable <UnityEngine.AnimatorOverrideController>(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.AnimationClip>(L, 3))
                {
                    UnityEngine.AnimatorOverrideController __cl_gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1);
                    string key = LuaAPI.lua_tostring(L, 2);
                    __cl_gen_to_be_invoked[key] = (UnityEngine.AnimationClip)translator.GetObject(L, 3, typeof(UnityEngine.AnimationClip));
                    LuaAPI.lua_pushboolean(L, true);
                    return(1);
                }

                if (translator.Assignable <UnityEngine.AnimatorOverrideController>(L, 1) && translator.Assignable <UnityEngine.AnimationClip>(L, 2) && translator.Assignable <UnityEngine.AnimationClip>(L, 3))
                {
                    UnityEngine.AnimatorOverrideController __cl_gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1);
                    UnityEngine.AnimationClip key = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip));
                    __cl_gen_to_be_invoked[key] = (UnityEngine.AnimationClip)translator.GetObject(L, 3, typeof(UnityEngine.AnimationClip));
                    LuaAPI.lua_pushboolean(L, true);
                    return(1);
                }
            }
            catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            LuaAPI.lua_pushboolean(L, false);
            return(1);
        }
Esempio n. 2
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.AnimatorOverrideController gen_ret = new UnityEngine.AnimatorOverrideController();
                    translator.Push(L, gen_ret);

                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <UnityEngine.RuntimeAnimatorController>(L, 2))
                {
                    UnityEngine.RuntimeAnimatorController _controller = (UnityEngine.RuntimeAnimatorController)translator.GetObject(L, 2, typeof(UnityEngine.RuntimeAnimatorController));

                    UnityEngine.AnimatorOverrideController gen_ret = new UnityEngine.AnimatorOverrideController(_controller);
                    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.AnimatorOverrideController constructor!"));
        }
        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.AnimatorOverrideController();

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Esempio n. 4
0
 protected override void GetDependencies(System.Collections.Generic.Dictionary <long, UnityEngine.Object> dependencies, object obj)
 {
     base.GetDependencies(dependencies, obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.AnimatorOverrideController o = (UnityEngine.AnimatorOverrideController)obj;
     AddDependency(o.runtimeAnimatorController, dependencies);
 }
Esempio n. 5
0
 public override void ReadFrom(object obj)
 {
     base.ReadFrom(obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.AnimatorOverrideController o = (UnityEngine.AnimatorOverrideController)obj;
     runtimeAnimatorController = o.runtimeAnimatorController.GetMappedInstanceID();
 }
Esempio n. 6
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.AnimatorOverrideController o = (UnityEngine.AnimatorOverrideController)obj;
     o.runtimeAnimatorController = (UnityEngine.RuntimeAnimatorController)objects.Get(runtimeAnimatorController);
     return(o);
 }
Esempio n. 7
0
        static int _s_set_runtimeAnimatorController(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.runtimeAnimatorController = (UnityEngine.RuntimeAnimatorController)translator.GetObject(L, 2, typeof(UnityEngine.RuntimeAnimatorController));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 8
0
        static int _g_get_overridesCount(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.overridesCount);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 9
0
        static int _g_get_runtimeAnimatorController(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.AnimatorOverrideController __cl_gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.runtimeAnimatorController);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Esempio n. 10
0
        static StackObject *Ctor_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.RuntimeAnimatorController controller = (UnityEngine.RuntimeAnimatorController) typeof(UnityEngine.RuntimeAnimatorController).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = new UnityEngine.AnimatorOverrideController(controller);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Esempio n. 11
0
        public static int __CSIndexer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                if (translator.Assignable <UnityEngine.AnimatorOverrideController>(L, 1) && translator.Assignable <UnityEngine.AnimationClip>(L, 2))
                {
                    UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1);
                    UnityEngine.AnimationClip index = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip));
                    LuaAPI.lua_pushboolean(L, true);
                    translator.Push(L, gen_to_be_invoked[index]);
                    return(2);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            LuaAPI.lua_pushboolean(L, false);
            return(1);
        }
Esempio n. 12
0
        static int _m_set_Item(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    string key = LuaAPI.lua_tostring(L, 2);
                    gen_to_be_invoked[key] = (UnityEngine.AnimationClip)translator.GetObject(L, 3, typeof(UnityEngine.AnimationClip));



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


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


            try {
                {
                    System.Collections.Generic.IList <System.Collections.Generic.KeyValuePair <UnityEngine.AnimationClip, UnityEngine.AnimationClip> > overrides = (System.Collections.Generic.IList <System.Collections.Generic.KeyValuePair <UnityEngine.AnimationClip, UnityEngine.AnimationClip> >)translator.GetObject(L, 2, typeof(System.Collections.Generic.IList <System.Collections.Generic.KeyValuePair <UnityEngine.AnimationClip, UnityEngine.AnimationClip> >));

                    __cl_gen_to_be_invoked.ApplyOverrides(overrides);



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