Ejemplo n.º 1
0
        private static IntPtr Constructor(IntPtr isolate, IntPtr info, int paramLen, long data)
        {
            try
            {
                {
                    var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0);
                    var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1);
                    var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2);
                    var argHelper3 = new Puerts.ArgumentHelper((int)data, isolate, info, 3);



                    {
                        var Arg0   = argHelper0.GetByte(false);
                        var Arg1   = argHelper1.GetByte(false);
                        var Arg2   = argHelper2.GetByte(false);
                        var Arg3   = argHelper3.GetByte(false);
                        var result = new UnityEngine.Color32(Arg0, Arg1, Arg2, Arg3);


                        return(Puerts.Utils.GetObjectPtr((int)data, typeof(UnityEngine.Color32), result));
                    }
                }
            }
            catch (Exception e)
            {
                Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace);
            }
            return(IntPtr.Zero);
        }
Ejemplo n.º 2
0
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.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.Byte @a = (byte)ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Byte @b = (byte)ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.Byte @g = (byte)ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            System.Byte @r = (byte)ptr_of_this_method->Value;


            var result_of_this_method = new UnityEngine.Color32(@r, @g, @b, @a);

            if (!isNewObj)
            {
                __ret--;
                WriteBackInstance(__domain, __ret, __mStack, ref result_of_this_method);
                return(__ret);
            }

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Set from a Unity colour.
 /// </summary>
 /// <param name="c">The TES colour to modify.</param>
 /// <param name="uc">The Unity colour to read colour values from..</param>
 public static void Set(this Colour c, UnityEngine.Color32 uc)
 {
     c.R = uc.r;
     c.G = uc.g;
     c.B = uc.b;
     c.A = uc.a;
 }
Ejemplo n.º 4
0
        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) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
                {
                    byte _r = (byte)LuaAPI.xlua_tointeger(L, 2);
                    byte _g = (byte)LuaAPI.xlua_tointeger(L, 3);
                    byte _b = (byte)LuaAPI.xlua_tointeger(L, 4);
                    byte _a = (byte)LuaAPI.xlua_tointeger(L, 5);

                    var gen_ret = new UnityEngine.Color32(_r, _g, _b, _a);
                    translator.Push(L, gen_ret);

                    return(1);
                }

                if (LuaAPI.lua_gettop(L) == 1)
                {
                    translator.Push(L, default(UnityEngine.Color32));
                    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.Color32 constructor!"));
        }
Ejemplo n.º 5
0
        static StackObject *AddVert_7(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, 7);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Vector4 tangent = (UnityEngine.Vector4) typeof(UnityEngine.Vector4).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Vector3 normal = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.Vector2 uv1 = (UnityEngine.Vector2) typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            UnityEngine.Vector2 uv0 = (UnityEngine.Vector2) typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
            UnityEngine.Color32 color = (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, 6);
            UnityEngine.Vector3 position = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 7);
            UnityEngine.UI.VertexHelper instance_of_this_method;
            instance_of_this_method = (UnityEngine.UI.VertexHelper) typeof(UnityEngine.UI.VertexHelper).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.AddVert(position, color, uv0, uv1, normal, tangent);

            return(__ret);
        }
Ejemplo n.º 6
0
        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) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
                {
                    byte r = (byte)LuaAPI.lua_tonumber(L, 2);
                    byte g = (byte)LuaAPI.lua_tonumber(L, 3);
                    byte b = (byte)LuaAPI.lua_tonumber(L, 4);
                    byte a = (byte)LuaAPI.lua_tonumber(L, 5);

                    UnityEngine.Color32 __cl_gen_ret = new UnityEngine.Color32(r, g, b, a);
                    translator.Push(L, __cl_gen_ret);

                    return(1);
                }

                if (LuaAPI.lua_gettop(L) == 1)
                {
                    translator.Push(L, default(UnityEngine.Color32));
                    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.Color32 constructor!"));
        }
        static int _m_GetCurrentColor(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.ParticleSystem.Particle __cl_gen_to_be_invoked; translator.Get(L, 1, out __cl_gen_to_be_invoked);


            try {
                {
                    UnityEngine.ParticleSystem system = (UnityEngine.ParticleSystem)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem));

                    UnityEngine.Color32 __cl_gen_ret = __cl_gen_to_be_invoked.GetCurrentColor(system);
                    translator.Push(L, __cl_gen_ret);


                    translator.Update(L, 1, __cl_gen_to_be_invoked);


                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static StackObject *AddVert_8(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.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);
            UnityEngine.Vector2 @uv0 = (UnityEngine.Vector2) typeof(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.Color32 @color = (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, 3);
            UnityEngine.Vector3 @position = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

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

            instance_of_this_method.AddVert(@position, @color, @uv0);

            return(__ret);
        }
Ejemplo n.º 9
0
 public void updateEffectColor(UnityEngine.Color32 color)
 {
     byte[] channels = new byte[3] {
         color.r, color.g, color.b
     };
     effect.channels = channels;
 }
Ejemplo n.º 10
0
        static object PerformMemberwiseClone(ref object o)
        {
            var ins = new UnityEngine.Color32();

            ins = (UnityEngine.Color32)o;
            return(ins);
        }
Ejemplo n.º 11
0
 public void ClearColor(Color c, bool apply = true)
 {
     var colors = new UnityEngine.Color32[Width * Height];
     for (int i = 0; i < colors.Length; i++)
         colors[i] = c.ToUColor();
     uTexture.SetPixels32(colors);
     if (apply) Apply();
 }
Ejemplo n.º 12
0
        /// <summary>
        /// Constructs a new <c>Color</c> from the passed values.
        /// </summary>
        /// <param name="a">Alpha component of the color.</param>
        /// <param name="r">Red component of the color.</param>
        /// <param name="g">Green component of the color.</param>
        /// <param name="b">Blue component of the color.</param>
        /// <returns>The resulting <c>Color</c> object.</returns>
        public static Color FromArgb(int a, int r, int g, int b)
        {
#if UNITY
            return(new Color((byte)r, (byte)g, (byte)b, (byte)a));
#else
            return(Color.FromArgb(a, r, g, b));
#endif
        }
Ejemplo n.º 13
0
 public static UColor32 Color(XColor input, ref UColor32 output)
 {
     output.r = input.R;
     output.g = input.G;
     output.b = input.B;
     output.a = input.A;
     return(output);
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Convert an array of TES colours to unity colours.
 /// </summary>
 /// <param name="colours">The array of colours to convert.</param>
 /// <returns>The converted array.</returns>
 public static UnityEngine.Color32[] FromUnity(Colour[] colours)
 {
     UnityEngine.Color32[] converted = new UnityEngine.Color32[colours.Length];
     for (int i = 0; i < colours.Length; ++i)
     {
         converted[i] = ToUnity(colours[i]);
     }
     return(converted);
 }
Ejemplo n.º 15
0
        /// <summary>
        /// Gets the red component of this <see cref="Color"/>.
        /// </summary>
        /// <param name="color">This <see cref="Color"/>.</param>
        /// <returns>The red component of this <see cref="Color"/>.</returns>
        public static byte R(this Color color)
        {
#if UNITY
            return(color.r);
#elif GODOT
            return((byte)color.r8);
#else
            return(color.R);
#endif
        }
Ejemplo n.º 16
0
        /// <summary>
        /// Gets the alpha component of this <see cref="Color"/>.
        /// </summary>
        /// <param name="color">This <see cref="Color"/>.</param>
        /// <returns>The alpha component of this <see cref="Color"/>.</returns>
        public static byte A(this Color color)
        {
#if UNITY
            return(color.a);
#elif GODOT
            return((byte)color.a8);
#else
            return(color.A);
#endif
        }
Ejemplo n.º 17
0
        /// <summary>
        /// Constructs a new <c>Color</c> from the passed values.
        /// </summary>
        /// <param name="a">Alpha component of the color.</param>
        /// <param name="r">Red component of the color.</param>
        /// <param name="g">Green component of the color.</param>
        /// <param name="b">Blue component of the color.</param>
        /// <returns>The resulting <c>Color</c> object.</returns>
        public static Color FromArgb(int a, int r, int g, int b)
        {
#if UNITY
            return(new Color((byte)r, (byte)g, (byte)b, (byte)a));
#elif GODOT
            return(new Color((byte)r << 24 | (byte)g << 16 | (byte)b << 8 | (byte)a));
#else
            return(Color.FromArgb(a, r, g, b));
#endif
        }
Ejemplo n.º 18
0
        /// <summary>
        /// Gets the blue component of this <see cref="Color"/>.
        /// </summary>
        /// <param name="color">This <see cref="Color"/>.</param>
        /// <returns>The blue component of this <see cref="Color"/>.</returns>
        public static byte B(this Color color)
        {
#if UNITY
            return(color.b);
#elif GODOT
            return((byte)color.b8);
#else
            return(color.B);
#endif
        }
Ejemplo n.º 19
0
 public static Color32 FromUnityType(UnityEngine.Color32 color32)
 {
     return(new Color32()
     {
         r = color32.r,
         g = color32.g,
         b = color32.b,
         a = color32.a
     });
 }
Ejemplo n.º 20
0
        private static UnityEngine.Color32[] ToUnityColors(Color4[] colors)
        {
            var res = new UnityEngine.Color32[colors.Length];

            for (int i = 0; i < colors.Length; ++i)
            {
                res[i] = new UnityEngine.Color32(colors[i].R, colors[i].G, colors[i].B, colors[i].A);
            }
            return(res);
        }
Ejemplo n.º 21
0
        /// <summary>
        /// Gets the green component of this <see cref="Color"/>.
        /// </summary>
        /// <param name="color">This <see cref="Color"/>.</param>
        /// <returns>The green component of this <see cref="Color"/>.</returns>
        public static byte G(this Color color)
        {
#if UNITY
            return(color.g);
#elif GODOT
            return((byte)color.g8);
#else
            return(color.G);
#endif
        }
Ejemplo n.º 22
0
        public void SetAmbientLight(UnityEngine.Color color, int intensity)
        {
            var mustUpdateAmbient = AmbientTargetBrightness < 0;

            AmbientTargetColor      = color;
            AmbientTargetBrightness = intensity;
            if (mustUpdateAmbient)
            {
                AmbientCurrentColor      = AmbientTargetColor;
                AmbientCurrentBrightness = AmbientTargetBrightness;
            }
        }
Ejemplo n.º 23
0
 /// <summary>Write 32-bit color (4 bytes) to the writer.</summary>
 /// <param name="value">Color to write.</param>
 public void Write(UnityEngine.Color32 value)
 {
     if (Disposed)
     {
         throw new ObjectDisposedException(GetType().FullName);
     }
     Internal               = Allocator.ExpandMessage(Internal, Position, 4);
     Internal[Position]     = value.r;
     Internal[Position + 1] = value.g;
     Internal[Position + 2] = value.b;
     Internal[Position + 3] = value.a;
     Position              += 4;
 }
Ejemplo n.º 24
0
        public void updateFixtures(string name, UnityEngine.Color32 color)
        {
            byte[] channels = new byte[4] {
                color.a, color.r, color.g, color.b
            };

            foreach (Fixture fix in fixtures)
            {
                if (fix.name == name || fix.isInGroup(name))
                {
                    fix.updateChannels(channels, mainFade / millPerFrame);
                }
            }
        }
Ejemplo n.º 25
0
 public VertexPositionColorTexture this[int i]
 {
     set
     {
         positions[i].Set(value.Position.X, value.Position.Y, 0);
         texcoords[i].Set(value.TextureCoordinate.X, 1 - value.TextureCoordinate.Y);
         uint color = value.Color.PackedValue;
         colors[i] = new UColor(
             (byte)(color),
             (byte)(color >> 8),
             (byte)(color >> 16),
             (byte)(color >> 24));
     }
 }
Ejemplo n.º 26
0
        static StackObject *op_Implicit_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.Color32 c = (UnityEngine.Color32) typeof(UnityEngine.Color32).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = (UnityEngine.Color)c;

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Ejemplo n.º 27
0
        public void ClearColor(Color c, bool apply = true)
        {
            var colors = new UnityEngine.Color32[Width * Height];

            for (int i = 0; i < colors.Length; i++)
            {
                colors[i] = c.ToUColor();
            }
            uTexture.SetPixels32(colors);
            if (apply)
            {
                Apply();
            }
        }
Ejemplo n.º 28
0
 public StringStyle(Color color, FontStyle fontStyle, string fontname)
 {
     this.color        = color;
     this.ButtonColor  = Config.FocusColor;
     this.ColorChanged = false;            //こっちのパターンでは色変更を後で検知
     this.FontStyle    = fontStyle;
     if (string.IsNullOrEmpty(fontname))
     {
         Fontname = Config.FontName;
     }
     else
     {
         this.Fontname = fontname;
     }
 }
Ejemplo n.º 29
0
 /// <summary>
 /// HTML用。ColorChangedを固定する。
 /// </summary>
 public StringStyle(Color color, bool colorChanged, Color buttonColor, FontStyle fontStyle, string fontname)
 {
     this.color        = color;
     this.ButtonColor  = buttonColor;
     this.ColorChanged = colorChanged;
     this.FontStyle    = fontStyle;
     if (string.IsNullOrEmpty(fontname))
     {
         Fontname = Config.FontName;
     }
     else
     {
         this.Fontname = fontname;
     }
 }
Ejemplo n.º 30
0
        static void WriteBackInstance(ILRuntime.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref UnityEngine.Color32 instance_of_this_method)
        {
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            switch (ptr_of_this_method->ObjectType)
            {
            case ObjectTypes.Object:
            {
                __mStack[ptr_of_this_method->Value] = instance_of_this_method;
            }
            break;

            case ObjectTypes.FieldReference:
            {
                var ___obj = __mStack[ptr_of_this_method->Value];
                if (___obj is ILTypeInstance)
                {
                    ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    var t = __domain.GetType(___obj.GetType()) as CLRType;
                    t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.StaticFieldReference:
            {
                var t = __domain.GetType(ptr_of_this_method->Value);
                if (t is ILType)
                {
                    ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.ArrayReference:
            {
                var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.Color32[];
                instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method;
            }
            break;
            }
        }
Ejemplo n.º 31
0
        static StackObject *AddVert_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 9);

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

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

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

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

            ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
            UnityEngine.Vector2 @uv1 = (UnityEngine.Vector2) typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 6);
            UnityEngine.Vector2 @uv0 = (UnityEngine.Vector2) typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 7);
            UnityEngine.Color32 @color = (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, 8);
            UnityEngine.Vector3 @position = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 9);
            UnityEngine.UI.VertexHelper @obj = (UnityEngine.UI.VertexHelper) typeof(UnityEngine.UI.VertexHelper).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            UnityEngine.Experimental.UI.VertexHelperExtension.AddVert(@obj, @position, @color, @uv0, @uv1, @uv2, @uv3, @normal, @tangent);

            return(__ret);
        }