Exemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();
            Output("Initialized Component");

            messageLog.HorizontalScrollbar = true;
            gameServerPanel.AutoScroll = true;

            server = new Server(this);
        }
        public RegistrationAutomation(Server server)
        {
            this.server = server;
            this.database = server.Database;

            Timer registrationTimer = new Timer();
            registrationTimer.Elapsed += new ElapsedEventHandler(OnRegistrationTimer);
            registrationTimer.Interval = 5000;
            registrationTimer.Enabled = true;

            server.Form.Output("RA object created");
        }
        public SocketListener(Server server, int port)
        {
            this.server = server;
            this.port = port;

            server.Form.Output("Found the following servers:");
            foreach (GameServer gameServer in Server.GameServers) {
                server.Form.Output("- " + gameServer);
            }

            listenerThread = new Thread(new ThreadStart(Listener));
            listenerThread.IsBackground = true;
            listenerThread.Start();
        }
Exemplo n.º 4
0
        public Database(Server server)
        {
            this.server = server;

            connection = new MySqlConnection("Server=176.31.253.42;Database=rsd;Uid=rootstamp;Pwd=rootstamp1337");
        }