示例#1
0
        protected override void onLocationSelected(Location loc)
        {
            ElectricPole e = ElectricPole.get(loc);

            if (e != null)
            {
                TrafficVoxel.get(loc).accessory = null;
            }
        }
示例#2
0
        public override void drawVoxel(QuarterViewDrawer view, DrawContextEx canvas, Location loc, Point pt)
        {
            if (base.currentPos != loc)
            {
                return;
            }

            ElectricPole e = ElectricPole.get(loc);

            if (e != null)
            {
                ResourceUtil.emptyChip.drawShape(canvas.surface, pt, Color.Red);
            }
        }