public override void DesignateSingleCell(IntVec3 c) { HaulExplicitlyPosting posting = Designator_HaulExplicitly.prospective_job; posting.TryMakeDestinations(UI.MouseMapPosition(), false); HaulExplicitly.RegisterPosting(posting); ResetJob(); }
public override AcceptanceReport CanDesignateCell(IntVec3 c) { HaulExplicitlyPosting posting = Designator_HaulExplicitly.prospective_job; if (posting == null) { return(false); } return(posting.TryMakeDestinations(UI.MouseMapPosition())); }
public override void SelectedUpdate() { HaulExplicitlyPosting posting = Designator_HaulExplicitly.prospective_job; if (posting == null) { return; } if (posting.TryMakeDestinations(UI.MouseMapPosition()) && posting.destinations != null) { float alt = AltitudeLayer.MetaOverlays.AltitudeFor(); foreach (IntVec3 d in posting.destinations) { Vector3 drawPos = d.ToVector3ShiftedWithAltitude(alt); Graphics.DrawMesh(MeshPool.plane10, drawPos, Quaternion.identity, DesignatorUtility.DragHighlightThingMat, 0); } } }