Exemplo n.º 1
0
        static int _s_set_OnHandBookItemClick(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.ui.UIHandBookItemSlot __cl_gen_to_be_invoked = (xc.ui.UIHandBookItemSlot)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.OnHandBookItemClick = translator.GetDelegate <System.Func <int, bool> >(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 2
0
        static int _g_get_OnHandBookItemClick(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.ui.UIHandBookItemSlot __cl_gen_to_be_invoked = (xc.ui.UIHandBookItemSlot)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.OnHandBookItemClick);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 3
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.ui.UIHandBookItemSlot __cl_gen_ret = new xc.ui.UIHandBookItemSlot();
                    translator.Push(L, __cl_gen_ret);
                    return(1);
                }
            }
            catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to xc.ui.UIHandBookItemSlot constructor!"));
        }
Exemplo n.º 4
0
        static int _m_Reset(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.UIHandBookItemSlot __cl_gen_to_be_invoked = (xc.ui.UIHandBookItemSlot)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.Reset(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 5
0
        static int _m_GetHandBookPicture(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.UIHandBookItemSlot __cl_gen_to_be_invoked = (xc.ui.UIHandBookItemSlot)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.UI.RawImage __cl_gen_ret = __cl_gen_to_be_invoked.GetHandBookPicture(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 6
0
        static int _m_SetUpgradeEff(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.UIHandBookItemSlot __cl_gen_to_be_invoked = (xc.ui.UIHandBookItemSlot)translator.FastGetCSObj(L, 1);


            try {
                {
                    bool show = LuaAPI.lua_toboolean(L, 2);

                    __cl_gen_to_be_invoked.SetUpgradeEff(show);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 7
0
        static int _m_SetRedPointID(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.UIHandBookItemSlot __cl_gen_to_be_invoked = (xc.ui.UIHandBookItemSlot)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint redPointID = LuaAPI.xlua_touint(L, 2);

                    __cl_gen_to_be_invoked.SetRedPointID(redPointID);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 8
0
        static int _m_SetHandBookBorder(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.UIHandBookItemSlot __cl_gen_to_be_invoked = (xc.ui.UIHandBookItemSlot)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.Sprite border = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite));

                    __cl_gen_to_be_invoked.SetHandBookBorder(border);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 9
0
        static int _m_SetHandBookPicture(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.UIHandBookItemSlot __cl_gen_to_be_invoked = (xc.ui.UIHandBookItemSlot)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string picturePath = LuaAPI.lua_tostring(L, 2);

                    __cl_gen_to_be_invoked.SetHandBookPicture(picturePath);



                    return(0);
                }
                if (__gen_param_count == 2 && translator.Assignable <UnityEngine.Texture>(L, 2))
                {
                    UnityEngine.Texture picture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture));

                    __cl_gen_to_be_invoked.SetHandBookPicture(picture);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.ui.UIHandBookItemSlot.SetHandBookPicture!"));
        }
Exemplo n.º 10
0
        static int _m_SetHandBookInfo(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.UIHandBookItemSlot __cl_gen_to_be_invoked = (xc.ui.UIHandBookItemSlot)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6))
                {
                    int    id       = LuaAPI.xlua_tointeger(L, 2);
                    string name     = LuaAPI.lua_tostring(L, 3);
                    int    stars    = LuaAPI.xlua_tointeger(L, 4);
                    bool   full     = LuaAPI.lua_toboolean(L, 5);
                    bool   selected = LuaAPI.lua_toboolean(L, 6);

                    __cl_gen_to_be_invoked.SetHandBookInfo(id, name, stars, full, selected);



                    return(0);
                }
                if (__gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5))
                {
                    int    id    = LuaAPI.xlua_tointeger(L, 2);
                    string name  = LuaAPI.lua_tostring(L, 3);
                    int    stars = LuaAPI.xlua_tointeger(L, 4);
                    bool   full  = LuaAPI.lua_toboolean(L, 5);

                    __cl_gen_to_be_invoked.SetHandBookInfo(id, name, stars, full);



                    return(0);
                }
                if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    int    id    = LuaAPI.xlua_tointeger(L, 2);
                    string name  = LuaAPI.lua_tostring(L, 3);
                    int    stars = LuaAPI.xlua_tointeger(L, 4);

                    __cl_gen_to_be_invoked.SetHandBookInfo(id, name, stars);



                    return(0);
                }
                if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    int    id   = LuaAPI.xlua_tointeger(L, 2);
                    string name = LuaAPI.lua_tostring(L, 3);

                    __cl_gen_to_be_invoked.SetHandBookInfo(id, name);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.ui.UIHandBookItemSlot.SetHandBookInfo!"));
        }