AllowTool.Designator_Allow.ThingIsRelevant C# (CSharp) Méthode

ThingIsRelevant() protected méthode

protected ThingIsRelevant ( Thing item ) : bool
item Thing
Résultat bool
		protected override bool ThingIsRelevant(Thing item) {
			var comp = item is ThingWithComps ? (item as ThingWithComps).GetComp<CompForbiddable>() : null;
			return comp != null && comp.Forbidden;
		}