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

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

protected ProcessCell ( IntVec3 c ) : int
c IntVec3
Результат int
		override protected 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];
				if (thing.def.selectable && thing.IsForbidden(Faction.OfPlayer)) {
					thing.SetForbidden(false);
					hitCount++;
				}
			}
			return hitCount;
		}
	}