private bool LoadItemElement(SecurityElement element, out ConstellationElement itemElement) { itemElement = new ConstellationElement(); string attribute = element.Attribute("Constellation_ID"); if (attribute != null) { itemElement.nID = StrParser.ParseDecInt(attribute, -1); } attribute = element.Attribute("Constellation_Name"); if (attribute != null) { itemElement.StrName = StrParser.ParseStr(attribute, ""); } attribute = element.Attribute("Constellation_Icon"); if (attribute != null) { itemElement.StrIcon = StrParser.ParseStr(attribute, ""); } attribute = element.Attribute("Constellation_Describe"); if (attribute != null) { itemElement.StrDesc = StrParser.ParseStr(attribute, ""); } return(true); }
public bool GetItemElement(int itemLogicID, out ConstellationElement itemElement) { itemElement = null; if (!_mItemElementList.TryGetValue(itemLogicID, out itemElement)) { return(false); } return(true); }