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

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

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