예제 #1
0
        public override void DesignateSingleCell(IntVec3 c)
        {
            HaulExplicitlyPosting posting = Designator_HaulExplicitly.prospective_job;

            posting.TryMakeDestinations(UI.MouseMapPosition(), false);
            HaulExplicitly.RegisterPosting(posting);
            ResetJob();
        }
예제 #2
0
        public override AcceptanceReport CanDesignateCell(IntVec3 c)
        {
            HaulExplicitlyPosting posting = Designator_HaulExplicitly.prospective_job;

            if (posting == null)
            {
                return(false);
            }
            return(posting.TryMakeDestinations(UI.MouseMapPosition()));
        }
예제 #3
0
        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);
                }
            }
        }