Пример #1
0
        public static bool ClearLaneConnections(uint laneId)
        {
            bool result = false;
            Lane lane   = GetLane(laneId);

            if (lane != null)
            {
                result = true;
                foreach (uint connectionId in GetLaneConnections(laneId))
                {
                    result &= lane.RemoveConnection(connectionId);
                }
                ToolsModifierControl.GetTool <RoadCustomizerTool>().SetNodeMarkers(lane.m_nodeId, true);
            }

            return(result);
        }
Пример #2
0
        public static bool RemoveLaneConnection(uint laneId, uint connectionId)
        {
            Lane lane = GetLane(laneId);

            return(lane.RemoveConnection(connectionId));
        }