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


            System.Collections.Generic.List <xc.Goods> __cl_gen_to_be_invoked = (System.Collections.Generic.List <xc.Goods>)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && translator.Assignable <xc.Goods>(L, 2))
                {
                    xc.Goods item = (xc.Goods)translator.GetObject(L, 2, typeof(xc.Goods));

                    int __cl_gen_ret = __cl_gen_to_be_invoked.BinarySearch(item);
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && translator.Assignable <xc.Goods>(L, 2) && translator.Assignable <System.Collections.Generic.IComparer <xc.Goods> >(L, 3))
                {
                    xc.Goods item = (xc.Goods)translator.GetObject(L, 2, typeof(xc.Goods));
                    System.Collections.Generic.IComparer <xc.Goods> comparer = (System.Collections.Generic.IComparer <xc.Goods>)translator.GetObject(L, 3, typeof(System.Collections.Generic.IComparer <xc.Goods>));

                    int __cl_gen_ret = __cl_gen_to_be_invoked.BinarySearch(item, comparer);
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <xc.Goods>(L, 4) && translator.Assignable <System.Collections.Generic.IComparer <xc.Goods> >(L, 5))
                {
                    int      index = LuaAPI.xlua_tointeger(L, 2);
                    int      count = LuaAPI.xlua_tointeger(L, 3);
                    xc.Goods item  = (xc.Goods)translator.GetObject(L, 4, typeof(xc.Goods));
                    System.Collections.Generic.IComparer <xc.Goods> comparer = (System.Collections.Generic.IComparer <xc.Goods>)translator.GetObject(L, 5, typeof(System.Collections.Generic.IComparer <xc.Goods>));

                    int __cl_gen_ret = __cl_gen_to_be_invoked.BinarySearch(index, count, item, comparer);
                    LuaAPI.xlua_pushinteger(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 System.Collections.Generic.List<xc.Goods>.BinarySearch!"));
        }
Ejemplo n.º 2
0
        static int _m_CreateWeddingRingByIdInfo_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            try {
                {
                    uint          idInfo   = LuaAPI.xlua_touint(L, 1);
                    XLua.LuaTable mateInfo = (XLua.LuaTable)translator.GetObject(L, 2, typeof(XLua.LuaTable));

                    xc.Goods __cl_gen_ret = xc.WeddingRingHelper.CreateWeddingRingByIdInfo(idInfo, mateInfo);
                    translator.Push(L, __cl_gen_ret);



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


            System.Collections.Generic.List <xc.Goods> __cl_gen_to_be_invoked = (System.Collections.Generic.List <xc.Goods>)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.Goods item = (xc.Goods)translator.GetObject(L, 2, typeof(xc.Goods));

                    __cl_gen_to_be_invoked.Add(item);



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


            System.Collections.Generic.Dictionary <ulong, xc.Goods> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <ulong, xc.Goods>)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.Goods value = (xc.Goods)translator.GetObject(L, 2, typeof(xc.Goods));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.ContainsValue(value);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



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


            System.Collections.Generic.Dictionary <ulong, xc.Goods> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <ulong, xc.Goods>)translator.FastGetCSObj(L, 1);


            try {
                {
                    ulong    key   = LuaAPI.lua_touint64(L, 2);
                    xc.Goods value = (xc.Goods)translator.GetObject(L, 3, typeof(xc.Goods));

                    __cl_gen_to_be_invoked.Add(key, value);



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


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


            try {
                {
                    xc.GoodsLuaEx cp = (xc.GoodsLuaEx)translator.GetObject(L, 2, typeof(xc.GoodsLuaEx));

                    xc.Goods __cl_gen_ret = __cl_gen_to_be_invoked.Copy(cp);
                    translator.Push(L, __cl_gen_ret);



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


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


            try {
                {
                    xc.Goods matchGoods             = (xc.Goods)translator.GetObject(L, 2, typeof(xc.Goods));
                    UnityEngine.GameObject itemSlot = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));

                    __cl_gen_to_be_invoked.RefreshMatch(matchGoods, itemSlot);



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


            System.Collections.Generic.List <xc.Goods> __cl_gen_to_be_invoked = (System.Collections.Generic.List <xc.Goods>)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.Predicate <xc.Goods> match = translator.GetDelegate <System.Predicate <xc.Goods> >(L, 2);

                    xc.Goods __cl_gen_ret = __cl_gen_to_be_invoked.FindLast(match);
                    translator.Push(L, __cl_gen_ret);



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