Exemplo n.º 1
0
        public void Reset()
        {
            if (State != null && State.Chatroom != Guid.Empty)
            {
                Rooms.LeaveRoom(State.Chatroom);
            }

            State = new ChampSelectState();
            OnStateChanged();
        }
Exemplo n.º 2
0
        internal Guid JoinDraft(ChampSelectState state)
        {
            var jid = new Jid(state.TeamId + "@champ-select.pvp.net");

            return(JoinRoom(jid, null));
        }
Exemplo n.º 3
0
 public static ChampSelectAction GetCurrentAction(this ChampSelectState state)
 {
     return((state?.CurrentActionIndex ?? -1) < 0 ? null : state.Actions[state.CurrentActionIndex]?.Single());
 }