public EntitySetItemOption(EntitySetItem parent, int count) { this.Parent = parent; this.Count = count; Option = new Dictionary <string, string>(); if (count == 0) { this.ViewName = Parent.ViewName + " 풀세트"; } else { this.ViewName = Parent.ViewName + " " + count + "세트효과"; } }
private void LoadSetItem() { SetItemList = new List <EntitySetItem>(); string[] urls = { GenerateDataFile.fileListItems[5] }; for (int i = 0; i < urls.Length; i++) { XmlDocument xml = new XmlDocument(); xml.Load(GenerateDataFile.dataPath + "\\" + urls[i]); XmlElement root = xml.DocumentElement; XmlNodeList list = root.ChildNodes; foreach (XmlNode node in list) { EntitySetItem set = new EntitySetItem(this, node); if (set.ViewName == null) { continue; } this.SetItemList.Add(set); } XMLEventHandler(this, new XMLEventArgs(XMLEvent.랜덤옵션, urls[i])); } }