public override AcceptanceReport AllowsPlacing(BuildableDef checkingDef, IntVec3 loc, Rot4 rot, Map map, Thing thingToIgnore = null, Thing thing = null) { if (DeepDrillUtility.GetNextResource(loc, map) == null) { return("MustPlaceOnDrillable".Translate()); } return(true); }
public static ThingDef GetNextResource(IntVec3 p, Map map) { ThingDef result; int num; IntVec3 intVec; DeepDrillUtility.GetNextResource(p, map, out result, out num, out intVec); return(result); }
private bool GetNextResource(out ThingDef resDef, out int countPresent, out IntVec3 cell) { return(DeepDrillUtility.GetNextResource(this.parent.Position, this.parent.Map, out resDef, out countPresent, out cell)); }