mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-09 23:00:57 -05:00
more consistent/enhanced game penalty messages per issue #171
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
using SharedLibraryCore.Database.Models;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
public interface IClientNoticeMessageFormatter
|
||||
{
|
||||
/// <summary>
|
||||
/// builds a game formatted notice message
|
||||
/// </summary>
|
||||
/// <param name="currentPenalty">current penalty the message is for</param>
|
||||
/// <param name="originalPenalty">previous penalty the current penalty relates to</param>
|
||||
/// <param name="config">RCon parser config</param>
|
||||
/// <returns></returns>
|
||||
string BuildFormattedMessage(IRConParserConfiguration config, EFPenalty currentPenalty, EFPenalty originalPenalty = null);
|
||||
}
|
||||
}
|
18
SharedLibraryCore/Interfaces/IGameServer.cs
Normal file
18
SharedLibraryCore/Interfaces/IGameServer.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System.Threading.Tasks;
|
||||
using SharedLibraryCore.Database.Models;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
public interface IGameServer
|
||||
{
|
||||
/// <summary>
|
||||
/// kicks target on behalf of origin for given reason
|
||||
/// </summary>
|
||||
/// <param name="reason">reason client is being kicked</param>
|
||||
/// <param name="target">client to kick</param>
|
||||
/// <param name="origin">source of kick action</param>
|
||||
/// <param name="previousPenalty">previous penalty the kick is occuring for (if applicable)</param>
|
||||
/// <returns></returns>
|
||||
public Task Kick(string reason, EFClient target, EFClient origin, EFPenalty previousPenalty = null);
|
||||
}
|
||||
}
|
@ -62,5 +62,9 @@ namespace SharedLibraryCore.Interfaces
|
||||
/// specifies the default dvar values for games that don't support certain dvars
|
||||
/// </summary>
|
||||
IDictionary<string, string> DefaultDvarValues { get; set; }
|
||||
|
||||
int NoticeMaximumLines { get; set; }
|
||||
|
||||
int NoticeMaxCharactersPerLine { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user