public ReplayInfo Parse() { var info = new ReplayInfo { Header = parseHeader(), CommandStream = parseCommandStream(), Players = new Dictionary <byte, Player>() }; foreach (var a in info.Header.Armies) { if (a.ContainsKey("SourceId")) { info.Players[a["SourceId"]] = new Player { Name = a["PlayerName"] } } } ; return(info); }
public ReplayStats(ReplayInfo replay) { Replay = replay; }