02ef5a0bf8
reduce status polling rate adding preliminary russian localization small rcon tweak to attempt to send custom encoded messages removed exception handling in ConvertLong throttled servers will still attempt to execute events
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using SharedLibraryCore.Interfaces;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SharedLibraryCore.Configuration
|
|
{
|
|
public class ServerConfiguration : IBaseConfiguration
|
|
{
|
|
public string IPAddress { get; set; }
|
|
public short Port { get; set; }
|
|
public string Password { get; set; }
|
|
public List<string> Rules { get; set; }
|
|
public List<string> AutoMessages { get; set; }
|
|
public bool UseT6MParser { get; set; }
|
|
public bool UseIW5MParser { get; set; }
|
|
public string ManualLogPath { get; set; }
|
|
|
|
public IBaseConfiguration Generate()
|
|
{
|
|
UseT6MParser = Utilities.PromptBool(Utilities.CurrentLocalization.LocalizationSet["SETUP_SERVER_USET6M"]);
|
|
if (!UseT6MParser)
|
|
UseIW5MParser = Utilities.PromptBool(Utilities.CurrentLocalization.LocalizationSet["SETUP_SERVER_USEIW5M"]);
|
|
if (UseIW5MParser)
|
|
ManualLogPath = Utilities.PromptString(Utilities.CurrentLocalization.LocalizationSet["SETUP_SERVER_MANUALLOG"]);
|
|
|
|
return this;
|
|
}
|
|
|
|
public string Name() => "ServerConfiguration";
|
|
}
|
|
}
|