示例#1
0
        static void Main(string[] args)
        {
            var files = Directory.GetFiles(@"D:\Fredrik\Project\Other\Replays\", "*.hdtreplay");

            foreach (var file in files)
            {
                var keypoints = ReplayFileParser.Parse(file);
                var metadata  = GameReplayAnalyzer.GenerateMetadata(keypoints);
                System.Console.WriteLine($"{metadata.PlayerManaSpent} - {metadata.OpponentManaSpent} = {metadata.PlayerManaSpent - metadata.OpponentManaSpent} => {metadata.Result}");
            }
            System.Console.Read();
        }
 public void GivenIHaveParsedFileWithPath(string p0)
 {
     parsedKeypoints = ReplayFileParser.Parse(p0);
 }