Example #1
0
 public void Parse(System.Xml.XmlElement element)
 {
     this.FSOVersion   = element.ReadTextNode("FSO-Version");
     this.FSOBranch    = element.ReadTextNode("FSO-Branch");
     this.FSOUpdateUrl = element.ReadTextNode("FSO-UpdateUrl");
     this.FSOCDNUrl    = element.ReadTextNode("FSO-CDNUrl");
 }
Example #2
0
 public void Parse(System.Xml.XmlElement element)
 {
     this.Name   = element.ReadTextNode("Name");
     this.Rank   = int.Parse(element.ReadTextNode("Rank"));
     this.Map    = element.ReadTextNode("Map");
     this.Status = (ShardStatus)Enum.Parse(typeof(ShardStatus), element.ReadTextNode("Status"));
     this.Id     = int.Parse(element.ReadTextNode("Id"));
 }
        public void Parse(System.Xml.XmlElement element)
        {
            this.Address  = element.ReadTextNode("Connection-Address");
            this.Ticket   = element.ReadTextNode("Authorization-Ticket");
            this.PlayerID = uint.Parse(element.ReadTextNode("PlayerID"));

            this.AvatarID = element.ReadTextNode("AvatarID");
        }
Example #4
0
        public void Parse(System.Xml.XmlElement element)
        {
            this.ID        = uint.Parse(element.ReadTextNode("AvatarID"));
            this.Name      = element.ReadTextNode("Name");
            this.ShardName = element.ReadTextNode("Shard-Name");

            var headString = element.ReadTextNode("Head");

            if (headString != null)
            {
                this.HeadOutfitID = ulong.Parse(headString);
            }

            var bodyString = element.ReadTextNode("Body");

            if (bodyString != null)
            {
                this.BodyOutfitID = ulong.Parse(bodyString);
            }

            var apprString = element.ReadTextNode("Appearance");

            if (apprString != null)
            {
                this.AppearanceType = (AvatarAppearanceType)Enum.Parse(typeof(AvatarAppearanceType), apprString);
            }

            var lotId = element.ReadTextNode("LotId");

            if (lotId != null)
            {
                this.LotId = uint.Parse(lotId);
            }

            var lotLocation = element.ReadTextNode("LotLocation");

            if (lotLocation != null)
            {
                this.LotLocation = uint.Parse(lotLocation);
            }

            LotName = element.ReadTextNode("LotName");

            var descString = element.ReadTextNode("Description");

            this.Description = descString ?? "";
        }
Example #5
0
 public void Parse(System.Xml.XmlElement element)
 {
     this.Code    = element.ReadTextNode("Error-Number");
     this.Message = element.ReadTextNode("Error");
 }