示例#1
0
 private void ResolveRuleChains(DropAttemptInfo info, ItemDropAttemptResult parentResult, List <IItemDropRuleChainAttempt> ruleChains)
 {
     if (ruleChains == null)
     {
         return;
     }
     for (int i = 0; i < ruleChains.Count; i++)
     {
         IItemDropRuleChainAttempt itemDropRuleChainAttempt = ruleChains[i];
         if (itemDropRuleChainAttempt.CanChainIntoRule(parentResult))
         {
             ResolveRule(itemDropRuleChainAttempt.RuleToChain, info);
         }
     }
 }
示例#2
0
 private void ResolveRuleChains(
     ref DropAttemptInfo info,
     ref ItemDropAttemptResult parentResult,
     List <IItemDropRuleChainAttempt> ruleChains)
 {
     if (ruleChains == null)
     {
         return;
     }
     for (int index = 0; index < ruleChains.Count; ++index)
     {
         IItemDropRuleChainAttempt ruleChain = ruleChains[index];
         if (ruleChain.CanChainIntoRule(parentResult))
         {
             this.ResolveRule(ruleChain.RuleToChain, info);
         }
     }
 }