Пример #1
0
        static StackObject *Ctor_2(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, 5);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @mipCount = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Experimental.Rendering.TextureCreationFlags @flags = (UnityEngine.Experimental.Rendering.TextureCreationFlags) typeof(UnityEngine.Experimental.Rendering.TextureCreationFlags).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.Experimental.Rendering.GraphicsFormat @format = (UnityEngine.Experimental.Rendering.GraphicsFormat) typeof(UnityEngine.Experimental.Rendering.GraphicsFormat).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            System.Int32 @cubemapCount = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
            System.Int32 @width = ptr_of_this_method->Value;


            var result_of_this_method = new UnityEngine.CubemapArray(@width, @cubemapCount, @format, @flags, @mipCount);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Пример #2
0
        static StackObject *Ctor_4(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, 5);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @linear = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Boolean @mipChain = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.TextureFormat @textureFormat = (UnityEngine.TextureFormat) typeof(UnityEngine.TextureFormat).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            System.Int32 @cubemapCount = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
            System.Int32 @width = ptr_of_this_method->Value;


            var result_of_this_method = new UnityEngine.CubemapArray(@width, @cubemapCount, @textureFormat, @mipChain, @linear);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Пример #3
0
        static StackObject *SetPixels32_10(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, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @arrayElement = ptr_of_this_method->Value;

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

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.Color32[] @colors = (UnityEngine.Color32[]) typeof(UnityEngine.Color32[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

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

            instance_of_this_method.SetPixels32(@colors, @face, @arrayElement);

            return(__ret);
        }
        static int _g_get_isReadable(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

            try {
                UnityEngine.CubemapArray __cl_gen_to_be_invoked = (UnityEngine.CubemapArray)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.format);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Пример #6
0
        static StackObject *Apply_13(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.CubemapArray instance_of_this_method = (UnityEngine.CubemapArray) typeof(UnityEngine.CubemapArray).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Apply();

            return(__ret);
        }
Пример #7
0
        static StackObject *get_cubemapCount_0(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.CubemapArray instance_of_this_method = (UnityEngine.CubemapArray) typeof(UnityEngine.CubemapArray).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.cubemapCount;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method;
            return(__ret + 1);
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4) && translator.Assignable <UnityEngine.Experimental.Rendering.TextureCreationFlags>(L, 5))
                {
                    int _width        = LuaAPI.xlua_tointeger(L, 2);
                    int _cubemapCount = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.Experimental.Rendering.GraphicsFormat       _format; translator.Get(L, 4, out _format);
                    UnityEngine.Experimental.Rendering.TextureCreationFlags _flags; translator.Get(L, 5, out _flags);

                    var gen_ret = new UnityEngine.CubemapArray(_width, _cubemapCount, _format, _flags);
                    translator.Push(L, gen_ret);

                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.TextureFormat>(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6))
                {
                    int _width        = LuaAPI.xlua_tointeger(L, 2);
                    int _cubemapCount = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.TextureFormat _textureFormat; translator.Get(L, 4, out _textureFormat);
                    bool _mipChain = LuaAPI.lua_toboolean(L, 5);
                    bool _linear   = LuaAPI.lua_toboolean(L, 6);

                    var gen_ret = new UnityEngine.CubemapArray(_width, _cubemapCount, _textureFormat, _mipChain, _linear);
                    translator.Push(L, gen_ret);

                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.TextureFormat>(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5))
                {
                    int _width        = LuaAPI.xlua_tointeger(L, 2);
                    int _cubemapCount = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.TextureFormat _textureFormat; translator.Get(L, 4, out _textureFormat);
                    bool _mipChain = LuaAPI.lua_toboolean(L, 5);

                    var gen_ret = new UnityEngine.CubemapArray(_width, _cubemapCount, _textureFormat, _mipChain);
                    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.CubemapArray constructor!"));
        }
        static int _m_Apply(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.Apply(  );



                    return(0);
                }
                if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool _updateMipmaps = LuaAPI.lua_toboolean(L, 2);

                    gen_to_be_invoked.Apply(_updateMipmaps);



                    return(0);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    bool _updateMipmaps        = LuaAPI.lua_toboolean(L, 2);
                    bool _makeNoLongerReadable = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.Apply(_updateMipmaps, _makeNoLongerReadable);



                    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.CubemapArray.Apply!"));
        }
        static int _m_SetPixels32(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 4 && translator.Assignable <UnityEngine.Color32[]>(L, 2) && translator.Assignable <UnityEngine.CubemapFace>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    UnityEngine.Color32[]   _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[]));
                    UnityEngine.CubemapFace _face; translator.Get(L, 3, out _face);
                    int _arrayElement = LuaAPI.xlua_tointeger(L, 4);

                    gen_to_be_invoked.SetPixels32(_colors, _face, _arrayElement);



                    return(0);
                }
                if (gen_param_count == 5 && translator.Assignable <UnityEngine.Color32[]>(L, 2) && translator.Assignable <UnityEngine.CubemapFace>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
                {
                    UnityEngine.Color32[]   _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[]));
                    UnityEngine.CubemapFace _face; translator.Get(L, 3, out _face);
                    int _arrayElement = LuaAPI.xlua_tointeger(L, 4);
                    int _miplevel     = LuaAPI.xlua_tointeger(L, 5);

                    gen_to_be_invoked.SetPixels32(_colors, _face, _arrayElement, _miplevel);



                    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.CubemapArray.SetPixels32!"));
        }
        static int _m_GetPixels32(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && translator.Assignable <UnityEngine.CubemapFace>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    UnityEngine.CubemapFace face; translator.Get(L, 2, out face);
                    int arrayElement = LuaAPI.xlua_tointeger(L, 3);

                    UnityEngine.Color32[] __cl_gen_ret = __cl_gen_to_be_invoked.GetPixels32(face, arrayElement);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 4 && translator.Assignable <UnityEngine.CubemapFace>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    UnityEngine.CubemapFace face; translator.Get(L, 2, out face);
                    int arrayElement = LuaAPI.xlua_tointeger(L, 3);
                    int miplevel     = LuaAPI.xlua_tointeger(L, 4);

                    UnityEngine.Color32[] __cl_gen_ret = __cl_gen_to_be_invoked.GetPixels32(face, arrayElement, miplevel);
                    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.CubemapArray.GetPixels32!"));
        }
Пример #12
0
        static StackObject *Apply_11(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, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @makeNoLongerReadable = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Boolean @updateMipmaps = ptr_of_this_method->Value == 1;

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

            instance_of_this_method.Apply(@updateMipmaps, @makeNoLongerReadable);

            return(__ret);
        }
Пример #13
0
        static StackObject *GetPixels32_5(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, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @miplevel = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Int32 @arrayElement = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.CubemapFace @face = (UnityEngine.CubemapFace) typeof(UnityEngine.CubemapFace).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

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

            var result_of_this_method = instance_of_this_method.GetPixels32(@face, @arrayElement, @miplevel);

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

            try {
                if (LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.TextureFormat>(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5))
                {
                    int faceSize     = LuaAPI.xlua_tointeger(L, 2);
                    int cubemapCount = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.TextureFormat format; translator.Get(L, 4, out format);
                    bool mipmap = LuaAPI.lua_toboolean(L, 5);

                    UnityEngine.CubemapArray __cl_gen_ret = new UnityEngine.CubemapArray(faceSize, cubemapCount, format, mipmap);
                    translator.Push(L, __cl_gen_ret);

                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.TextureFormat>(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6))
                {
                    int faceSize     = LuaAPI.xlua_tointeger(L, 2);
                    int cubemapCount = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.TextureFormat format; translator.Get(L, 4, out format);
                    bool mipmap = LuaAPI.lua_toboolean(L, 5);
                    bool linear = LuaAPI.lua_toboolean(L, 6);

                    UnityEngine.CubemapArray __cl_gen_ret = new UnityEngine.CubemapArray(faceSize, cubemapCount, format, mipmap, linear);
                    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.CubemapArray constructor!"));
        }