Пример #1
0
 private void CollectNewTargets(Pawn meeseeks, CompMeeseeksMemory memory, IntVec3 cell, Map map)
 {
     foreach (IntVec3 nearCell in GenAdjFast.AdjacentCellsCardinal(cell))
     {
         if (nearCell.InBounds(map) && nearCell.Roofed(map) && map.areaManager.NoRoof[nearCell])
         {
             memory.AddJobTarget(nearCell);
         }
     }
 }
Пример #2
0
        public override void DesignateSingleCell(IntVec3 cell)
        {
            SavedJob savedJob = Memory.savedJob;

            if (savedJob != null)
            {
                if (cachedCellResults.ContainsKey(cell) && cachedCellResults[cell] == true)
                {
                    Memory.AddJobTarget(new SavedTargetInfo(cell));
                }

                foreach (Thing thing in cell.GetThingList(base.Map))
                {
                    if (cachedThingResults.ContainsKey(thing) && cachedThingResults[thing] == true)
                    {
                        DesignateThing(thing);
                    }
                }
            }
        }