Ejemplo n.º 1
0
        public override void DesignateSingleCell(IntVec3 c)
        {
            HaulExplicitlyPosting posting = Designator_HaulExplicitly.prospective_job;

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

            if (posting == null)
            {
                return(false);
            }
            return(posting.TryMakeDestinations(UI.MouseMapPosition()));
        }
Ejemplo n.º 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);
                }
            }
        }