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

            try {
                xc.GoodsSoul __cl_gen_to_be_invoked = (xc.GoodsSoul)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.mCanInstallHole = LuaAPI.lua_toboolean(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_CurLvHaveVal(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

            try {
                xc.GoodsSoul __cl_gen_to_be_invoked = (xc.GoodsSoul)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.NetSoul = (Net.PkgSoul)translator.GetObject(L, 2, typeof(Net.PkgSoul));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 4
0
        static int _g_get_MaxBasicAttrs(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 1)
                {
                    __cl_gen_to_be_invoked.UpdateSoul(  );



                    return(0);
                }
                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    uint lv = LuaAPI.xlua_touint(L, 2);

                    __cl_gen_to_be_invoked.UpdateSoul(lv);



                    return(0);
                }
                if (__gen_param_count == 2 && translator.Assignable <Net.PkgSoul>(L, 2))
                {
                    Net.PkgSoul soul = (Net.PkgSoul)translator.GetObject(L, 2, typeof(Net.PkgSoul));

                    __cl_gen_to_be_invoked.UpdateSoul(soul);



                    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.GoodsSoul.UpdateSoul!"));
        }
Exemplo n.º 6
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <Net.PkgGoodsInfo>(L, 3))
                {
                    uint             typeId = LuaAPI.xlua_touint(L, 2);
                    Net.PkgGoodsInfo info   = (Net.PkgGoodsInfo)translator.GetObject(L, 3, typeof(Net.PkgGoodsInfo));

                    xc.GoodsSoul __cl_gen_ret = new xc.GoodsSoul(typeId, info);
                    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.GoodsSoul constructor!"));
        }
Exemplo n.º 7
0
        static int _m_RefreshSoulCanInstallHole(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


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

                    __cl_gen_to_be_invoked.RefreshSoulCanInstallHole(holdId);



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


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


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

                    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));
            }
        }
        static int _m_Add(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    uint         key   = LuaAPI.xlua_touint(L, 2);
                    xc.GoodsSoul value = (xc.GoodsSoul)translator.GetObject(L, 3, typeof(xc.GoodsSoul));

                    __cl_gen_to_be_invoked.Add(key, value);



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


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


            try {
                {
                    System.Collections.Generic.List <uint> listA = (System.Collections.Generic.List <uint>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <uint>));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.IsHaveSame(listA);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



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


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


            try {
                {
                    xc.ActorAttribute attr = (xc.ActorAttribute)translator.GetObject(L, 2, typeof(xc.ActorAttribute));

                    string __cl_gen_ret = __cl_gen_to_be_invoked.GetTextByAttr(attr);
                    LuaAPI.lua_pushstring(L, __cl_gen_ret);



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