Exemplo n.º 1
0
        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();
        }