public EvtcParser(EvtcParserSettings parserSettings, GW2EIGW2API.GW2APIController apiController)
 {
     _apiController  = apiController;
     _parserSettings = parserSettings;
     _allAgentsList  = new List <AgentItem>();
     _skillData      = new SkillData(apiController);
     _combatItems    = new List <CombatItem>();
     _playerList     = new List <Player>();
     _logStartTime   = 0;
     _logEndTime     = 0;
 }
 public EvtcParser(EvtcParserSettings parserSettings, GW2EIGW2API.GW2APIController apiController)
 {
     _apiController     = apiController;
     _parserSettings    = parserSettings;
     _allAgentsList     = new List <AgentItem>();
     _skillData         = new SkillData(apiController);
     _combatItems       = new List <CombatItem>();
     _playerList        = new List <Player>();
     _logStartTime      = 0;
     _logEndTime        = 0;
     _enabledExtensions = new Dictionary <uint, AbstractExtensionHandler>();
 }
        public static ParsedEvtcLog ParseLog(string location, GW2EIGW2API.GW2APIController apiController)
        {
            var parser = new EvtcParser(parserSettings, apiController);

            var           fInfo     = new FileInfo(location);
            ParsedEvtcLog parsedLog = parser.ParseLog(new TestOperationController(), fInfo, out GW2EIEvtcParser.ParserHelpers.ParsingFailureReason failureReason);

            if (failureReason != null)
            {
                failureReason.Throw();
            }
            return(parsedLog);
        }