public bool GetRankExpObject(int Level, out ShopRankExpObject RankExpObject) { RankExpObject = null; if (!_mShopRankExpDic.TryGetValue(Level, out RankExpObject)) { return(false); } return(true); }
private bool LoadItemElement(SecurityElement element, out ShopRankExpObject itemElement) { itemElement = new ShopRankExpObject(); string attribute = element.Attribute("Shop_Level"); if (attribute != null) { itemElement.Shop_Level = StrParser.ParseDecInt(attribute, 0); } attribute = element.Attribute("Exp"); if (attribute != null) { itemElement.Exp = StrParser.ParseDecInt(attribute, 0); } attribute = element.Attribute("Can_Fresh_Type"); if (attribute != null) { itemElement.Can_Fresh_Type = StrParser.ParseStr(attribute, ""); } attribute = element.Attribute("Can_Refresh_Num"); if (attribute != null) { itemElement.Can_Refresh_Num = StrParser.ParseDecInt(attribute, 0); } attribute = element.Attribute("Shop_Des"); if (attribute != null) { itemElement.Shop_Des = StrParser.ParseStr(attribute, ""); } return(true); }