static StackObject *OverridePhysicsShape_19(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, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Collections.Generic.IList <UnityEngine.Vector2[]> @physicsShapes = (System.Collections.Generic.IList <UnityEngine.Vector2[]>) typeof(System.Collections.Generic.IList <UnityEngine.Vector2[]>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Sprite instance_of_this_method = (UnityEngine.Sprite) typeof(UnityEngine.Sprite).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.OverridePhysicsShape(@physicsShapes);

            return(__ret);
        }
        int UnityEngineSprite_m_OverridePhysicsShape(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


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


            {
                System.Collections.Generic.IList <UnityEngine.Vector2[]> _physicsShapes = (System.Collections.Generic.IList <UnityEngine.Vector2[]>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IList <UnityEngine.Vector2[]>));

                gen_to_be_invoked.OverridePhysicsShape(_physicsShapes);



                return(0);
            }
        }
Beispiel #3
0
        static int _m_OverridePhysicsShape(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    System.Collections.Generic.IList <UnityEngine.Vector2[]> physicsShapes = (System.Collections.Generic.IList <UnityEngine.Vector2[]>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IList <UnityEngine.Vector2[]>));

                    __cl_gen_to_be_invoked.OverridePhysicsShape(physicsShapes);



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