CampfireParty.JobDriver_Pyre.IsValidCellToWander C# (CSharp) Метод

IsValidCellToWander() защищенный Метод

protected IsValidCellToWander ( IntVec3 cell ) : bool
cell IntVec3
Результат bool
        protected bool IsValidCellToWander(IntVec3 cell)
        {
            if (cell.Standable() == false)
            {
                return false;
            }
            if (this.pawn.CanReach(new TargetInfo(cell), PathEndMode.OnCell, Danger.None) == false)
            {
                return false;
            }
            foreach (Thing thing in cell.GetThingList())
            {
                if (thing is Fire)
                {
                    return false;
                }
            }
            if (cell.GetRoom() != this.TargetLocA.GetRoom())
            {
                return false;
            }
            if (Find.PawnDestinationManager.DestinationIsReserved(cell))
            {
                return false;
            }
            return true;
        }