static int _g_get_GrooveNum(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.GoodsGodEquip __cl_gen_to_be_invoked = (xc.GoodsGodEquip)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.GrooveNum); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _m_GetBestGoodsGodEquip_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.GoodsGodEquip __cl_gen_ret = xc.GodEquip.GodEquipHelper.GetBestGoodsGodEquip( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
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 godEquip = (Net.PkgGoodsInfo)translator.GetObject(L, 3, typeof(Net.PkgGoodsInfo)); xc.GoodsGodEquip __cl_gen_ret = new xc.GoodsGodEquip(typeId, godEquip); 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.GoodsGodEquip constructor!")); }
static int _m_IsReward(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.GoodsGodEquip __cl_gen_to_be_invoked = (xc.GoodsGodEquip)translator.FastGetCSObj(L, 1); try { { bool __cl_gen_ret = __cl_gen_to_be_invoked.IsReward( ); 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_IsBetterGodEquip_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.GoodsGodEquip goods = (xc.GoodsGodEquip)translator.GetObject(L, 1, typeof(xc.GoodsGodEquip)); bool __cl_gen_ret = xc.GodEquip.GodEquipHelper.IsBetterGodEquip(goods); 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_ShowGodEquipTipsWindow_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.GoodsGodEquip godEquip = (xc.GoodsGodEquip)translator.GetObject(L, 1, typeof(xc.GoodsGodEquip)); string showType = LuaAPI.lua_tostring(L, 2); xc.GodEquip.GodEquipHelper.ShowGodEquipTipsWindow(godEquip, showType); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_UpdateGodEquip(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.GoodsGodEquip __cl_gen_to_be_invoked = (xc.GoodsGodEquip)translator.FastGetCSObj(L, 1); try { { Net.PkgGodEquip godEquip = (Net.PkgGodEquip)translator.GetObject(L, 2, typeof(Net.PkgGodEquip)); __cl_gen_to_be_invoked.UpdateGodEquip(godEquip); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ComputeAttribute_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.GoodsGodEquip goods = (xc.GoodsGodEquip)translator.GetObject(L, 1, typeof(xc.GoodsGodEquip)); uint activeCount = LuaAPI.xlua_touint(L, 2); xc.ActorAttribute attr = (xc.ActorAttribute)translator.GetObject(L, 3, typeof(xc.ActorAttribute)); xc.GodEquip.GodEquipHelper.ComputeAttribute(goods, activeCount, attr); 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.GoodsGodEquip> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <uint, xc.GoodsGodEquip>)translator.FastGetCSObj(L, 1); try { { xc.GoodsGodEquip value = (xc.GoodsGodEquip)translator.GetObject(L, 2, typeof(xc.GoodsGodEquip)); 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.GoodsGodEquip> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <uint, xc.GoodsGodEquip>)translator.FastGetCSObj(L, 1); try { { uint key = LuaAPI.xlua_touint(L, 2); xc.GoodsGodEquip value = (xc.GoodsGodEquip)translator.GetObject(L, 3, typeof(xc.GoodsGodEquip)); __cl_gen_to_be_invoked.Add(key, value); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }