Пример #1
0
 private bool CanBePlacedInContainer(EquipmentContainer container)
 {
     foreach (PlacingMethod placingMethod in placingMethods)
     {
         if (container.IsPlacingMethodSupported(placingMethod))
         {
             return(true);
         }
     }
     return(false);
 }
Пример #2
0
 private void SetCommonPlacingMethods(EquipmentContainer container)
 {
     commonPlacingMethodsWithContainer.Clear();
     foreach (PlacingMethod placingMethod in placingMethods)
     {
         if (container.IsPlacingMethodSupported(placingMethod))
         {
             commonPlacingMethodsWithContainer.Add(placingMethod);
         }
     }
 }