Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private static float <UsedBy> m__0(CompUseEffect x)
 {
     return(x.OrderPriority);
 }