Beispiel #1
0
        static StackObject *DrawRoundRect_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, 5);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single[] @corner = (System.Single[]) typeof(System.Single[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            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, 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.DrawRoundRect(@aWidth, @aHeight, @fillColor, @corner);

            return(__ret);
        }
        static int _m_DrawRoundRect(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.Color _fillColor; translator.Get(L, 4, out _fillColor);
                    float[]           _corner = (float[])translator.GetObject(L, 5, typeof(float[]));

                    gen_to_be_invoked.DrawRoundRect(_aWidth, _aHeight, _fillColor, _corner);



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