public void LeaveEvent(User user) { try { Participent partcipent = getParticipent(user.Id); user.InRealTimeQuiz = false; participents.Remove(partcipent); partcipent = null; } catch (KeyNotFoundException) { }; }
public void QuitEvent(User user) { try { Participent partcipent = getParticipent(user.Id); partcipent.Quit = true; user.InRealTimeQuiz = false; GameServer.UpdateArea(user.LoggedinClient); } catch (KeyNotFoundException) { }; }
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); }