public async Task SeekCurrent(int pos) { if (queue.Head == null) { return; } PlayerQueueEntry entry; if ((entry = queue.Prev()) != null) { queue.Remove(entry); } if ((entry = queue.Next()) != null) { queue.Remove(entry); } await queue.Head.Seek(pos); }
public void EvictPlayer(int index, bool autoJoinQueueAgain = false) { Player player = this.GetFighters <Player>()[index]; if (player == null) { return; } playerQueue.Remove(player.Name); this.SetFighter(index, null); if (autoJoinQueueAgain == true) { GameManager.Instance.gameState.playerParty.playerQueue.PlayerJoin(player.Name); } Messenger.Broadcast(Messages.OnRefreshWaitlistQueueUI); }