Exemplo n.º 1
0
        public void ParseStatistics(string gamePath, string gameName, bool isLoadedGame)
        {
            Logger.Log("Parsing game statistics.");

            LengthInSeconds = (int)(DateTime.Now - DateAndTime).TotalSeconds;

            var parser = new LogFileStatisticsParser(this, isLoadedGame);

            parser.ParseStats(gamePath, ClientConfiguration.Instance.StatisticsLogFileName);
        }
        public void ParseStatistics(string gamePath, string gameName, bool isLoadedGame)
        {
            Logger.Log("Parsing game statistics.");

            LengthInSeconds = (int)(DateTime.Now - DateAndTime).TotalSeconds;

            string logFileName = LogFileFinder.GetLogFilePath();

            var parser = new LogFileStatisticsParser(this, isLoadedGame);

            parser.ParseStats(gamePath, logFileName);
        }