IW4M-Admin/SharedLibraryCore/Interfaces/IRConParserConfiguration.cs

102 lines
3.3 KiB
C#
Raw Normal View History

using SharedLibraryCore.RCon;
using System.Collections.Generic;
using System.Globalization;
namespace SharedLibraryCore.Interfaces
{
public interface IRConParserConfiguration
{
/// <summary>
/// stores the command format for console commands
/// </summary>
2021-06-03 11:51:03 -04:00
CommandPrefix CommandPrefixes { get; }
2019-11-18 15:02:35 -05:00
/// <summary>
/// stores the regex info for parsing get status response
/// </summary>
2021-06-03 11:51:03 -04:00
ParserRegex Status { get; }
2019-11-18 15:02:35 -05:00
/// <summary>
/// stores regex info for parsing the map line from rcon status response
/// </summary>
2021-06-03 11:51:03 -04:00
ParserRegex MapStatus { get; }
2019-11-18 15:02:35 -05:00
2020-08-05 10:30:02 -04:00
/// <summary>
/// stores regex info for parsing the gametype line from rcon status response
/// </summary>
2021-06-03 11:51:03 -04:00
ParserRegex GametypeStatus { get; }
/// <summary>
/// stores regex info for parsing hostname line from rcon status response
/// </summary>
ParserRegex HostnameStatus { get; }
/// <summary>
/// stores regex info for parsing max players line from rcon status response
/// </summary>
ParserRegex MaxPlayersStatus { get; }
2020-08-05 10:30:02 -04:00
/// <summary>
/// stores the regex info for parsing get DVAR responses
/// </summary>
2021-06-03 11:51:03 -04:00
ParserRegex Dvar { get; }
2019-11-18 15:02:35 -05:00
/// <summary>
/// stores the regex info for parsing the header of a status response
/// </summary>
2021-06-03 11:51:03 -04:00
ParserRegex StatusHeader { get; }
/// <summary>
/// Specifies the expected response message from rcon when the server is not running
/// </summary>
2021-06-03 11:51:03 -04:00
string ServerNotRunningResponse { get; }
2019-02-03 21:47:05 -05:00
/// <summary>
/// indicates if the application should wait for response from server
/// when executing a command
/// </summary>
2021-06-03 11:51:03 -04:00
bool WaitForResponse { get; }
/// <summary>
/// indicates the format expected for parsed guids
/// </summary>
2021-06-03 11:51:03 -04:00
NumberStyles GuidNumberStyle { get; }
/// <summary>
/// specifies simple mappings for dvar names in scenarios where the needed
/// information is not stored in a traditional dvar name
/// </summary>
2021-06-03 11:51:03 -04:00
IDictionary<string, string> OverrideDvarNameMapping { get; }
/// <summary>
/// specifies the default dvar values for games that don't support certain dvars
/// </summary>
2021-06-03 11:51:03 -04:00
IDictionary<string, string> DefaultDvarValues { get; }
/// <summary>
/// specifies how many lines can be used for ingame notice
/// </summary>
int NoticeMaximumLines { get; set; }
/// <summary>
/// specifies how many characters can be displayed per notice line
/// </summary>
2021-06-03 11:51:03 -04:00
int NoticeMaxCharactersPerLine { get; }
/// <summary>
/// specifies the characters used to split a line
/// </summary>
2021-06-03 11:51:03 -04:00
string NoticeLineSeparator { get; }
/// <summary>
/// Default port the game listens to RCon requests on
/// </summary>
int? DefaultRConPort { get; }
/// <summary>
/// Default Indicator of where the game is installed (ex file path or registry entry)
/// </summary>
string DefaultInstallationDirectoryHint { get; }
}
}