/// <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(); } }
/// <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); } }