Ejemplo n.º 1
0
        internal GameClientManager()
        {
            clients                 = new Dictionary <uint, GameClient>();
            clientsAddQueue         = new Queue();
            clientsToRemove         = new Queue();
            creditQueuee            = new Queue();
            badgeQueue              = new Queue();
            authorizedPacketSending = new Queue();
            broadcastQueue          = new Queue();
            timedOutConnections     = new Queue();
            usernameRegister        = new Hashtable();
            userIDRegister          = new Hashtable();

            usernameIdRegister = new Hashtable();
            idUsernameRegister = new Hashtable();

            Thread timeOutThread = new Thread(new ThreadStart(HandleTimeouts));

            timeOutThread.Start();

            pingInterval = int.Parse(PiciEnvironment.GetConfig().data["client.ping.interval"]);

            cyclePixelsEnabled = false;
            cyclePixelsAmount  = 0;
            cyclePixelsTime    = 0;
            pixelsOnLogin      = 0;

            cycleCreditsEnabled = false;
            cycleCreditsAmount  = 0;
            cycleCreditsTime    = 0;
            creditsOnLogin      = 0;
        }