public ConnectManager(IrcClient irc, GameManager dispatcher) { _irc = irc; _disp = dispatcher; _irc.OnIRCQEvent += PrintIncoming; _irc.OnIRCQEvent += OnIncoming; }
public static void Main(string[] args) { GameChannel.Out("GameChannel", "Version " + Version); IrcClient irc = new IrcClient(); irc.IsBackground = false; Loader loader = new Loader(); dispatcher = new GameManager(irc, loader); manager = new ConnectManager(irc, dispatcher); Console.CancelKeyPress += OnConsoleInterrupt; AppDomain.CurrentDomain.UnhandledException += UnhandledException; GameChannel.Out("GameChannel", "Reading configuration"); ConnectionSettings serverconf = LoadServerConfig(); GameChannel.Out("GameChannel", "Applying configuration and connecting"); irc.Settings = serverconf; irc.Connect(); }
internal void Insert(GameManager gm, IRCQueue.IrcClient irc) { _gm = gm; _irc = irc; }