Add main IRC logic

This commit is contained in:
ScottNZ
2013-09-20 20:54:08 +12:00
parent 3ee1628b13
commit 5bdd0705b2
13 changed files with 1185 additions and 106 deletions

View File

@@ -162,6 +162,21 @@ namespace OpenRA.GameRules
public string CycleTabsKey = "tab";
}
public class IrcSettings
{
public string Hostname = "irc.open-ra.org";
public int Port = 6667;
public string Nickname = null;
public string Username = "openra";
public string Realname = null;
public string DefaultNickname = "Newbie";
public string Channel = "global";
public string TimestampFormat = "HH:mm:ss";
public int ReconnectDelay = 10000;
public int ConnectionTimeout = 300000;
public bool Debug = false;
public bool ConnectAutomatically = false;
}
public class Settings
{
@@ -174,6 +189,7 @@ namespace OpenRA.GameRules
public ServerSettings Server = new ServerSettings();
public DebugSettings Debug = new DebugSettings();
public KeySettings Keys = new KeySettings();
public IrcSettings Irc = new IrcSettings();
public Dictionary<string, object> Sections;
@@ -189,6 +205,7 @@ namespace OpenRA.GameRules
{"Server", Server},
{"Debug", Debug},
{"Keys", Keys},
{"Irc", Irc}
};
// Override fieldloader to ignore invalid entries