AllowTool.Designator_Forbid.ProcessCell C# (CSharp) Метод

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

protected ProcessCell ( IntVec3 c ) : int
c IntVec3
Результат int
		protected override int ProcessCell(IntVec3 c) {
			var hitCount = 0;
			var cellThings = Find.ThingGrid.ThingsListAtFast(c);
			for (var i = 0; i < cellThings.Count; i++) {
				var thing = cellThings[i];
				var comp = thing is ThingWithComps ? (thing as ThingWithComps).GetComp<CompForbiddable>() : null;
				if (comp!=null && thing.def.selectable && !comp.Forbidden) {
					comp.Forbidden = true;
					hitCount++;
				}
			}
			return hitCount;
		}
	}