Пример #1
0
 public Drafter(CubeDraft draft, CubeDraftPlayer player, int position, DraftCollection draftCollection)
 {
     QueuedPicks.Enqueue(draftCollection.GetNextPack().Cards.ToList());
     DraftId    = draft.Id;
     PlayerId   = player.Id;
     UserId     = player.MtgoLink.UserId;
     PlayerName = player.MtgoLink.User.TwitchUsername;
     Position   = position;
     Packs      = draftCollection;
     _isTimed   = draft.Timed;
 }
Пример #2
0
        public Drafter(CubeDraft draft, CubeDraftPlayer player, int position, DraftCollection draftCollection, List <Card> picks)
        {
            if (picks == null)
            {
                picks = new List <Card>();
            }

            DraftId    = draft.Id;
            PlayerId   = player.Id;
            UserId     = player.MtgoLink.UserId;
            PlayerName = player.MtgoLink.User.TwitchUsername;
            Position   = position;
            _isTimed   = draft.Timed;
            Packs      = draftCollection;
            if (picks.Count == 0)
            {
                QueuedPicks.Enqueue(draftCollection.GetNextPack().Cards.ToList());
            }

            Picks       = picks;
            CurrentPick = picks.Count + 1;
        }