mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 07:13:58 -05:00
Fix bug with webfront spamming issues when running
Remove IW5 parser Begin implementation of dynamic parsers
This commit is contained in:
@ -18,6 +18,6 @@ namespace SharedLibraryCore.Interfaces
|
||||
/// Get game specific folder prefix for log files
|
||||
/// </summary>
|
||||
/// <returns>Game directory prefix</returns>
|
||||
string GetGameDir();
|
||||
IEventParserConfiguration Configuration { get; set; }
|
||||
}
|
||||
}
|
||||
|
16
SharedLibraryCore/Interfaces/IEventParserConfiguration.cs
Normal file
16
SharedLibraryCore/Interfaces/IEventParserConfiguration.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
public interface IEventParserConfiguration
|
||||
{
|
||||
string GameDirectory { get; set; }
|
||||
string SayRegex { get; set; }
|
||||
string JoinRegex { get; set; }
|
||||
string QuitRegex { get; set; }
|
||||
string KillRegex { get; set; }
|
||||
string DamageRegex { get; set; }
|
||||
}
|
||||
}
|
@ -40,6 +40,10 @@ namespace SharedLibraryCore.Interfaces
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IPageList GetPageList();
|
||||
IList<IRConParser> AdditionalRConParsers { get; }
|
||||
IList<IEventParser> AdditionalEventParsers { get; }
|
||||
IRConParser GenerateDynamicRConParser();
|
||||
IEventParser GenerateDynamicEventParser();
|
||||
string Version { get;}
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ using System.Threading.Tasks;
|
||||
using SharedLibraryCore.Database.Models;
|
||||
using SharedLibraryCore.Objects;
|
||||
using SharedLibraryCore.RCon;
|
||||
using static SharedLibraryCore.Server;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
@ -12,6 +13,6 @@ namespace SharedLibraryCore.Interfaces
|
||||
Task<bool> SetDvarAsync(Connection connection, string dvarName, object dvarValue);
|
||||
Task<string[]> ExecuteCommandAsync(Connection connection, string command);
|
||||
Task<List<EFClient>> GetStatusAsync(Connection connection);
|
||||
CommandPrefix GetCommandPrefixes();
|
||||
IRConParserConfiguration Configuration { get; set; }
|
||||
}
|
||||
}
|
||||
|
11
SharedLibraryCore/Interfaces/IRConParserConfiguration.cs
Normal file
11
SharedLibraryCore/Interfaces/IRConParserConfiguration.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using SharedLibraryCore.RCon;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
public interface IRConParserConfiguration
|
||||
{
|
||||
CommandPrefix CommandPrefixes { get; set; }
|
||||
Server.Game GameName { get; set; }
|
||||
string StatusRegex { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user