public override void DesignateSingleCell(IntVec3 c) { if (c.InBounds(Map)) { DesignateThing(c.GetFirstConstructible(Map)); } }
public override AcceptanceReport CanDesignateCell(IntVec3 loc) { AcceptanceReport result = base.CanDesignateCell(loc); if (!result.Accepted) { return(result); } Thing constructibleAsThing = loc.GetFirstConstructible(Map); if (Map.designationManager.DesignationOn(constructibleAsThing, BlueprintReportUtility.tabulateDesignationDef) == null) { return("MessageMustDesignateTabulatedConstructibles".Translate()); } return(true); }
public override AcceptanceReport CanDesignateCell(IntVec3 loc) { if (!loc.InBounds(Map) && loc.Fogged(Map)) { return(false); } Thing constructible = loc.GetFirstConstructible(Map); if (constructible == null) { return("MessageMustDesignateConstructibles".Translate()); } AcceptanceReport result = CanDesignateThing(constructible); return(result.Accepted); }