Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="view"></param>
        /// <param name="loc"></param>
        public override void Remove(MapViewWindow view, Location loc)
        {
            RailStationaryStructure s = RailStationaryStructure.get(loc);

            if (s != null)
            {
                s.remove();
            }
        }
Ejemplo n.º 2
0
 /// <summary> LocationDisambiguator implementation </summary>
 public override bool IsSelectable(Location loc)
 {
     if (IsPlacing)
     {
         // structures can be placed only on the ground
         return(GroundDisambiguator.theInstance.IsSelectable(loc));
     }
     else
     {
         return(RailStationaryStructure.get(loc) != null);
     }
 }