Esempio n. 1
0
 private void MakeMatchingGrowZone()
 {
     Designator designator = DesignatorUtility.FindAllowedDesignator<Designator_ZoneAdd_Growing>();
     designator.DesignateMultiCell(from tempCell in GrowableCells
                                   where designator.CanDesignateCell(tempCell).Accepted
                                   select tempCell);
 }
Esempio n. 2
0
        private void MakeMatchingStockpile()
        {
            Designator des = DesignatorUtility.FindAllowedDesignator <Designator_ZoneAddStockpile_Resources>();

            des.DesignateMultiCell(from c in this.PortableCells
                                   where des.CanDesignateCell(c).Accepted
                                   select c);
        }
Esempio n. 3
0
 public static void parrot_designate_multiple_cell(IEnumerable <IntVec3> cells, System.Type iType)
 {
     use_native = true;
     try
     {
         MethodInfo mi  = ExpressionHelper.GetMethodInfo(() => DesignatorUtility.FindAllowedDesignator <Designator>());
         MethodInfo mii = mi.GetGenericMethodDefinition().MakeGenericMethod(iType);
         Designator d   = (Designator)mii.Invoke(null, new object[] { });
         d.DesignateMultiCell(cells);
     }
     finally
     {
         use_native = false;
     }
 }
        private void MakeMatchingGrowZone()
        {
            Designator designator = DesignatorUtility.FindAllowedDesignator <Designator_ZoneAdd_Growing>();

            designator.DesignateMultiCell(GrowableCells.Where((IntVec3 tempCell) => designator.CanDesignateCell(tempCell).Accepted));
        }
        private void MakeMatchingStockpile()
        {
            Designator des = DesignatorUtility.FindAllowedDesignator <Designator_ZoneAddStockpile_Resources>();

            des.DesignateMultiCell(TradeableCells.Where((IntVec3 c) => des.CanDesignateCell(c).Accepted));
        }