public static ArcheTypeInfo ParseFromXml(XmlElement element) { ArcheTypeInfo info = new ArcheTypeInfo(); info.Name = XmlUtils.GetXmlAttributeString(element, "name"); info._internalClusterDangerBonusType = XmlUtils.GetXmlAttributeString(element, "clusterdangerbonustype"); return(info); }
private void ParseArcheTypes(XmlElement rootElement) { foreach (XmlNode xmlNode in rootElement.ChildNodes) { if (!(xmlNode is XmlElement element)) { continue; } ArcheTypeInfo info = ArcheTypeInfo.ParseFromXml(element); _archeTypes.Add(info.Name, info); } }
internal void PostProcess(WorldData worldData) { ArcheType = worldData.GetArchType(_internalArcheType); }