예제 #1
0
        public AlienSwarmMission(XmlElement data)
        {
            AverageDamageTaken  = float.Parse(data.GetInnerText("damagetakenavg"));
            AverageFriendlyFire = float.Parse(data.GetInnerText("friendlyfireavg"));
            AverageKills        = float.Parse(data.GetInnerText("killsavg"));

            BestDifficulty  = data.GetInnerText("bestdifficulty");
            DamageTaken     = int.Parse(data.GetInnerText("damagetaken"));
            FriendlyFire    = int.Parse(data.GetInnerText("friendlyfire"));
            GamesSuccessful = int.Parse(data.GetInnerText("gamessuccess"));

            Image = AlienSwarmStats.AppUrl + data.GetInnerText("image");

            Kills   = int.Parse(data.GetInnerText("kills"));
            MapName = /* get node name */ "";
            Name    = data.GetInnerText("name");

            TotalGames           = int.Parse(data.GetInnerText("gamestotal"));
            TotalGamesPercentage = float.Parse(data.GetInnerText("gamestotalpct"));

            MissionTimes = new AlienSwarmMissionTimes(data);
        }
예제 #2
0
        public AlienSwarmMission(XmlElement data)
        {
            AverageDamageTaken  = float.Parse(data.GetInnerText("damagetakenavg"));
            AverageFriendlyFire = float.Parse(data.GetInnerText("friendlyfireavg"));
            AverageKills        = float.Parse(data.GetInnerText("killsavg"));

            BestDifficulty =            data.GetInnerText("bestdifficulty");
            DamageTaken    =  int.Parse(data.GetInnerText("damagetaken"));
            FriendlyFire   =  int.Parse(data.GetInnerText("friendlyfire"));
            GamesSuccessful = int.Parse(data.GetInnerText("gamessuccess"));

            Image = AlienSwarmStats.AppUrl + data.GetInnerText("image");

            Kills   = int.Parse(data.GetInnerText("kills"));
            MapName = /* get node name */ "";
            Name    =           data.GetInnerText("name");

            TotalGames           =   int.Parse(data.GetInnerText("gamestotal"));
            TotalGamesPercentage = float.Parse(data.GetInnerText("gamestotalpct"));

            MissionTimes = new AlienSwarmMissionTimes(data);
        }