mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-09 23:00:57 -05:00
Implement more dynamic parser stuff
This commit is contained in:
41
SharedLibraryCore/Helpers/ParserRegex.cs
Normal file
41
SharedLibraryCore/Helpers/ParserRegex.cs
Normal file
@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
public sealed class ParserRegex
|
||||
{
|
||||
public enum GroupType
|
||||
{
|
||||
EventType,
|
||||
OriginNetworkId,
|
||||
TargetNetworkId,
|
||||
OriginClientNumber,
|
||||
TargetClientNumber,
|
||||
OriginName,
|
||||
TargetName,
|
||||
OriginTeam,
|
||||
TargetTeam,
|
||||
Weapon,
|
||||
Damage,
|
||||
MeansOfDeath,
|
||||
HitLocation,
|
||||
Message,
|
||||
RConClientNumber = 100,
|
||||
RConScore = 101,
|
||||
RConPing = 102,
|
||||
RConNetworkId = 103,
|
||||
RConName = 104,
|
||||
RConIpAddress = 105,
|
||||
AdditionalGroup = 200
|
||||
}
|
||||
public string Pattern { get; set; }
|
||||
public Dictionary<GroupType, int> GroupMapping { get; private set; }
|
||||
|
||||
public ParserRegex()
|
||||
{
|
||||
GroupMapping = new Dictionary<GroupType, int>();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user