private bool CanBeUsedBy(Pawn p, out string failReason) { List <ThingComp> allComps = parent.AllComps; for (int i = 0; i < allComps.Count; i++) { CompUseEffect compUseEffect = allComps[i] as CompUseEffect; if (compUseEffect != null && !compUseEffect.CanBeUsedBy(p, out failReason)) { return(false); } } failReason = null; return(true); }
private static float <UsedBy> m__0(CompUseEffect x) { return(x.OrderPriority); }