Exemple #1
0
        static StackObject *DrawPolygon_10(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, 5);

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

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Vector2[] @points = (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, 3);
            System.Single @aHeight = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            System.Single @aWidth = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
            FairyGUI.GGraph instance_of_this_method = (FairyGUI.GGraph) typeof(FairyGUI.GGraph).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.DrawPolygon(@aWidth, @aHeight, @points, @fillColor);

            return(__ret);
        }
Exemple #2
0
        static int _m_DrawPolygon(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.GGraph gen_to_be_invoked = (FairyGUI.GGraph)translator.FastGetCSObj(L, 1);



                {
                    float _aWidth  = (float)LuaAPI.lua_tonumber(L, 2);
                    float _aHeight = (float)LuaAPI.lua_tonumber(L, 3);
                    UnityEngine.Vector2[] _points = (UnityEngine.Vector2[])translator.GetObject(L, 4, typeof(UnityEngine.Vector2[]));
                    UnityEngine.Color     _fillColor; translator.Get(L, 5, out _fillColor);

                    gen_to_be_invoked.DrawPolygon(_aWidth, _aHeight, _points, _fillColor);



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


                FairyGUI.GGraph gen_to_be_invoked = (FairyGUI.GGraph)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <System.Collections.Generic.IList <UnityEngine.Vector2> >(L, 4) && translator.Assignable <UnityEngine.Color>(L, 5))
                {
                    float _aWidth  = (float)LuaAPI.lua_tonumber(L, 2);
                    float _aHeight = (float)LuaAPI.lua_tonumber(L, 3);
                    System.Collections.Generic.IList <UnityEngine.Vector2> _points = (System.Collections.Generic.IList <UnityEngine.Vector2>)translator.GetObject(L, 4, typeof(System.Collections.Generic.IList <UnityEngine.Vector2>));
                    UnityEngine.Color _fillColor; translator.Get(L, 5, out _fillColor);

                    gen_to_be_invoked.DrawPolygon(_aWidth, _aHeight, _points, _fillColor);



                    return(0);
                }
                if (gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <System.Collections.Generic.IList <UnityEngine.Vector2> >(L, 4) && translator.Assignable <UnityEngine.Color>(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && translator.Assignable <UnityEngine.Color>(L, 7))
                {
                    float _aWidth  = (float)LuaAPI.lua_tonumber(L, 2);
                    float _aHeight = (float)LuaAPI.lua_tonumber(L, 3);
                    System.Collections.Generic.IList <UnityEngine.Vector2> _points = (System.Collections.Generic.IList <UnityEngine.Vector2>)translator.GetObject(L, 4, typeof(System.Collections.Generic.IList <UnityEngine.Vector2>));
                    UnityEngine.Color _fillColor; translator.Get(L, 5, out _fillColor);
                    float             _lineSize = (float)LuaAPI.lua_tonumber(L, 6);
                    UnityEngine.Color _lineColor; translator.Get(L, 7, out _lineColor);

                    gen_to_be_invoked.DrawPolygon(_aWidth, _aHeight, _points, _fillColor, _lineSize, _lineColor);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.GGraph.DrawPolygon!"));
        }