public L4D2Map(XmlElement data) { string imgurl = data.GetInnerText("img"); ID = imgurl.Substring(0, imgurl.LastIndexOf('/') - 4); Name = data.GetInnerText("name"); Played = data.GetInnerText("hasPlayed").Equals("1"); if (Played) { BestTime = float.Parse(data.GetInnerText("besttimemilliseconds")) / 1000; ItemsUsed = new L4D2Items(data); InfectedKilled = new L4D2Infected(data); List <SteamID> teammateList = new List <SteamID>(); foreach (XmlElement teammate in data.GetXmlElement("teammates")) { teammateList.Add(SteamID.Create(long.Parse(teammate.InnerText), false)); } Teammates = teammateList.ToArray(); Medal = MedalFrom(data.GetInnerText("medal")); } }
public void SteamID64() { CSSStats stats = new CSSStats(76561197961384956); Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Achievments.Length, 0); stats = SteamID.Create(76561197961384956).CSSStats; Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Achievments.Length, 0); }
public void SteamID64() { L4DStats stats = new L4DStats(76561197989711328); Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Achievments.Length, 0); stats = SteamID.Create(76561197989711328).L4DStats; Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Achievments.Length, 0); }
public void CustomUrl() { CSSStats stats = new CSSStats("koraktor"); Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Achievments.Length, 0); stats = SteamID.Create("koraktor").CSSStats; Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Achievments.Length, 0); }
public void CustomUrl() { L4DStats stats = new L4DStats("toxedvirus"); Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Achievments.Length, 0); stats = (SteamID.Create("toxedvirus")).L4DStats; Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Achievments.Length, 0); }
public void SteamID64() { AlienSwarmStats stats = new AlienSwarmStats(76561197989711328); Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Missions.Length, 0); Assert.Greater(stats.Weapons.Length, 0); stats = SteamID.Create(76561197989711328).AlienSwarmStats; Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Missions.Length, 0); Assert.Greater(stats.Weapons.Length, 0); }
public void CustomUrl() { AlienSwarmStats stats = new AlienSwarmStats("toxedvirus"); Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Missions.Length, 0); Assert.Greater(stats.Weapons.Length, 0); stats = (SteamID.Create("toxedvirus")).AlienSwarmStats; Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.Missions.Length, 0); Assert.Greater(stats.Weapons.Length, 0); }
public void CustomUrl() { TF2Stats stats = new TF2Stats("koraktor"); Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.ClassStats.Length, 0); Assert.AreEqual(stats.ClassStats.Length, 9); Assert.Greater(stats.Achievments.Length, 0); stats = (SteamID.Create("koraktor")).TF2Stats; Assert.AreNotEqual(stats.AppID, 0); Assert.Greater(stats.AppID, 0); Assert.Greater(stats.ClassStats.Length, 0); Assert.AreEqual(stats.ClassStats.Length, 9); Assert.Greater(stats.Achievments.Length, 0); }