Exemplo n.º 1
0
        protected override void onLocationSelected(Location loc)
        {
            ElectricPole e = ElectricPole.get(loc);

            if (e != null)
            {
                TrafficVoxel.get(loc).accessory = null;
            }
        }
Exemplo n.º 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);
            }
        }