public void Reset() { if (State != null && State.Chatroom != Guid.Empty) { Rooms.LeaveRoom(State.Chatroom); } State = new ChampSelectState(); OnStateChanged(); }
internal Guid JoinDraft(ChampSelectState state) { var jid = new Jid(state.TeamId + "@champ-select.pvp.net"); return(JoinRoom(jid, null)); }
public static ChampSelectAction GetCurrentAction(this ChampSelectState state) { return((state?.CurrentActionIndex ?? -1) < 0 ? null : state.Actions[state.CurrentActionIndex]?.Single()); }