Пример #1
0
    public LeagueOptions(int standardGames, int gamesToDraft, int counterPicks, int counterPicksToDraft, int freeDroppableGames, int willNotReleaseDroppableGames, int willReleaseDroppableGames,
                         bool dropOnlyDraftGames, bool counterPicksBlockDrops, int minimumBidAmount, IEnumerable <LeagueTagStatus> leagueTags, IEnumerable <SpecialGameSlot> specialGameSlots,
                         DraftSystem draftSystem, PickupSystem pickupSystem, ScoringSystem scoringSystem, TradingSystem tradingSystem, TiebreakSystem tiebreakSystem, AnnualDate counterPickDeadline)
    {
        StandardGames                = standardGames;
        GamesToDraft                 = gamesToDraft;
        CounterPicks                 = counterPicks;
        CounterPicksToDraft          = counterPicksToDraft;
        FreeDroppableGames           = freeDroppableGames;
        WillNotReleaseDroppableGames = willNotReleaseDroppableGames;
        WillReleaseDroppableGames    = willReleaseDroppableGames;
        DropOnlyDraftGames           = dropOnlyDraftGames;
        CounterPicksBlockDrops       = counterPicksBlockDrops;
        MinimumBidAmount             = minimumBidAmount;
        LeagueTags          = leagueTags.ToList();
        SpecialGameSlots    = specialGameSlots.OrderBy(x => x.SpecialSlotPosition).ToList();
        DraftSystem         = draftSystem;
        PickupSystem        = pickupSystem;
        ScoringSystem       = scoringSystem;
        TradingSystem       = tradingSystem;
        TiebreakSystem      = tiebreakSystem;
        CounterPickDeadline = counterPickDeadline;

        _specialSlotDictionary = SpecialGameSlots.ToDictionary(specialGameSlot => StandardGames - SpecialGameSlots.Count + specialGameSlot.SpecialSlotPosition);
    }
Пример #2
0
    public LeagueOptions(LeagueYearParameters parameters)
    {
        StandardGames                = parameters.StandardGames;
        GamesToDraft                 = parameters.GamesToDraft;
        CounterPicks                 = parameters.CounterPicks;
        CounterPicksToDraft          = parameters.CounterPicksToDraft;
        FreeDroppableGames           = parameters.FreeDroppableGames;
        WillNotReleaseDroppableGames = parameters.WillNotReleaseDroppableGames;
        WillReleaseDroppableGames    = parameters.WillReleaseDroppableGames;
        DropOnlyDraftGames           = parameters.DropOnlyDraftGames;
        CounterPicksBlockDrops       = parameters.CounterPicksBlockDrops;
        MinimumBidAmount             = parameters.MinimumBidAmount;
        LeagueTags          = parameters.LeagueTags;
        SpecialGameSlots    = parameters.SpecialGameSlots.OrderBy(x => x.SpecialSlotPosition).ToList();
        DraftSystem         = parameters.DraftSystem;
        PickupSystem        = parameters.PickupSystem;
        ScoringSystem       = parameters.ScoringSystem;
        TradingSystem       = parameters.TradingSystem;
        TiebreakSystem      = parameters.TiebreakSystem;
        CounterPickDeadline = parameters.CounterPickDeadline;

        _specialSlotDictionary = SpecialGameSlots.ToDictionary(specialGameSlot => StandardGames - SpecialGameSlots.Count + specialGameSlot.SpecialSlotPosition);
    }