Exemple #1
0
        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);
        }
Exemple #2
0
 public ReplayStats(ReplayInfo replay)
 {
     Replay = replay;
 }