Exemplo n.º 1
0
        public static ArcheTypeInfo ParseFromXml(XmlElement element)
        {
            ArcheTypeInfo info = new ArcheTypeInfo();

            info.Name = XmlUtils.GetXmlAttributeString(element, "name");
            info._internalClusterDangerBonusType = XmlUtils.GetXmlAttributeString(element, "clusterdangerbonustype");

            return(info);
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 internal void PostProcess(WorldData worldData)
 {
     ArcheType = worldData.GetArchType(_internalArcheType);
 }