1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

update parsers to include game name

prompt to enter log path if game doesn't generate
This commit is contained in:
RaidMax
2019-02-05 18:02:45 -06:00
parent 30055cdc5e
commit f79d9d8469
18 changed files with 70 additions and 131 deletions

View File

@ -4,6 +4,7 @@ using SharedLibraryCore.Interfaces;
using System;
using System.Linq;
using System.Text.RegularExpressions;
using static SharedLibraryCore.Server;
namespace IW4MAdmin.Application.EventParsers
{
@ -70,6 +71,8 @@ namespace IW4MAdmin.Application.EventParsers
public string Version { get; set; } = "CoD";
public Game GameName { get; set; } = Game.COD;
public virtual GameEvent GetEvent(Server server, string logLine)
{
logLine = Regex.Replace(logLine, @"([0-9]+:[0-9]+ |^[0-9]+ )", "").Trim();