示例#1
0
        static int _m_GetPixel(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    UnityEngine.CubemapFace _face; translator.Get(L, 2, out _face);
                    int _x = LuaAPI.xlua_tointeger(L, 3);
                    int _y = LuaAPI.xlua_tointeger(L, 4);

                    var gen_ret = gen_to_be_invoked.GetPixel(_face, _x, _y);
                    translator.PushUnityEngineColor(L, gen_ret);



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


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


            try {
                {
                    UnityEngine.CubemapFace face; translator.Get(L, 2, out face);
                    int x = LuaAPI.xlua_tointeger(L, 3);
                    int y = LuaAPI.xlua_tointeger(L, 4);

                    UnityEngine.Color __cl_gen_ret = __cl_gen_to_be_invoked.GetPixel(face, x, y);
                    translator.PushUnityEngineColor(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
示例#3
0
        static StackObject *GetPixel_9(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 @y = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Int32 @x = 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.Cubemap instance_of_this_method = (UnityEngine.Cubemap) typeof(UnityEngine.Cubemap).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.GetPixel(@face, @x, @y);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }