Пример #1
0
        // ===================== Draw =====================
        /// <summary>
        /// Draw the projector and a line to the targeted pawn.
        /// </summary>
        public override void Draw()
        {
            base.Draw();

            if (Find.Selector.IsSelected(this))
            {
                List <IntVec3> lightedCellsList = Building_FixedProjector.GetLightedCells(this.Map, this.Position, this.Rotation);
                GenDraw.DrawFieldEdges(lightedCellsList);
            }
        }
        public override void DrawGhost(ThingDef def, IntVec3 loc, Rot4 rot, Color ghostCol)
        {
            List <IntVec3> lightedCellsList = Building_FixedProjector.GetLightedCells(Find.CurrentMap, loc, rot);

            GenDraw.DrawFieldEdges(lightedCellsList);
        }