public void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo)
        {
            DropRateInfoChainFeed ratesInfo2 = ratesInfo.With(1f);

            ratesInfo2.AddCondition(new Conditions.IsMasterMode());
            _ruleForMasterMode.ReportDroprates(drops, ratesInfo2);
            DropRateInfoChainFeed ratesInfo3 = ratesInfo.With(1f);

            ratesInfo3.AddCondition(new Conditions.NotMasterMode());
            _ruleForDefault.ReportDroprates(drops, ratesInfo3);
            Chains.ReportDroprates(ChainedRules, 1f, drops, ratesInfo);
        }
        public void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo)
        {
            DropRateInfoChainFeed ratesInfo2 = ratesInfo.With(1f);

            ratesInfo2.AddCondition(new Conditions.IsExpert());
            _ruleForExpertMode.ReportDroprates(drops, ratesInfo2);
            DropRateInfoChainFeed ratesInfo3 = ratesInfo.With(1f);

            ratesInfo3.AddCondition(new Conditions.NotExpert());
            _ruleForNormalMode.ReportDroprates(drops, ratesInfo3);
            Chains.ReportDroprates(ChainedRules, 1f, drops, ratesInfo);
        }
示例#3
0
        public void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo)
        {
            DropRateInfoChainFeed ratesInfo1 = ratesInfo.With(1f);

            ratesInfo1.AddCondition(new EModeDropCondition());
            ruleForEMode.ReportDroprates(drops, ratesInfo1);
            DropRateInfoChainFeed ratesInfo2 = ratesInfo.With(1f);

            ratesInfo2.AddCondition(new NotEModeDropCondition());
            ruleForDefault.ReportDroprates(drops, ratesInfo2);
            Chains.ReportDroprates(ChainedRules, 1f, drops, ratesInfo);
        }