Пример #1
0
        public void Reset()
        {
            if (State != null && State.Chatroom != Guid.Empty)
            {
                Rooms.LeaveRoom(State.Chatroom);
            }

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

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