Esempio n. 1
0
        private AuthMeTE CreateParallelTimer(int timeoutDelay, Dictionary <string, object> args)
        {
            AuthMeTE timedEvent = new AuthMeTE(timeoutDelay);

            timedEvent.Args    = args;
            timedEvent.OnFire += Callback;
            return(timedEvent);
        }
Esempio n. 2
0
        private void Callback(AuthMeTE e)
        {
            e.Kill();
            var data = e.Args;

            Fougerite.Player player = (Fougerite.Player)data["Player"];
            if (player.IsOnline && WaitingUsers.ContainsKey(player.UID))
            {
                player.Disconnect();
            }
        }