Exemplo n.º 1
0
 public void LeaveEvent(User user)
 {
     try
     {
         Participent partcipent = getParticipent(user.Id);
         user.InRealTimeQuiz = false;
         participents.Remove(partcipent);
         partcipent = null;
     }
     catch (KeyNotFoundException) { };
 }
Exemplo n.º 2
0
 public void QuitEvent(User user)
 {
     try
     {
         Participent partcipent = getParticipent(user.Id);
         partcipent.Quit     = true;
         user.InRealTimeQuiz = false;
         GameServer.UpdateArea(user.LoggedinClient);
     }
     catch (KeyNotFoundException) { };
 }
Exemplo n.º 3
0
        public Participent JoinEvent(User user)
        {
            try
            {
                return(getParticipent(user.Id));
            }
            catch (KeyNotFoundException) { };

            Participent newParticipent = new Participent(user, this);

            user.InRealTimeQuiz = true;
            participents.Add(newParticipent);


            return(newParticipent);
        }