コード例 #1
0
        static int _m_EnterClipping(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    uint _clipId = LuaAPI.xlua_touint(L, 2);
                    System.Nullable <UnityEngine.Rect>    _clipRect; translator.Get(L, 3, out _clipRect);
                    System.Nullable <UnityEngine.Vector4> _softness; translator.Get(L, 4, out _softness);
                    bool _reversedMask = LuaAPI.lua_toboolean(L, 5);

                    gen_to_be_invoked.EnterClipping(
                        _clipId,
                        _clipRect,
                        _softness,
                        _reversedMask);



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


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    uint _clipId       = LuaAPI.xlua_touint(L, 2);
                    bool _reversedMask = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.EnterClipping(_clipId, _reversedMask);



                    return(0);
                }
                if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.Rect>(L, 3) && translator.Assignable <System.Nullable <UnityEngine.Vector4> >(L, 4))
                {
                    uint             _clipId = LuaAPI.xlua_touint(L, 2);
                    UnityEngine.Rect _clipRect; translator.Get(L, 3, out _clipRect);
                    System.Nullable <UnityEngine.Vector4> _softness; translator.Get(L, 4, out _softness);

                    gen_to_be_invoked.EnterClipping(_clipId, _clipRect, _softness);



                    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.UpdateContext.EnterClipping!"));
        }