forked from kaka3286/RoadRunner
55 lines
1.4 KiB
C#
55 lines
1.4 KiB
C#
using Gley.UrbanSystem.Editor;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Gley.TrafficSystem.Editor
|
|
{
|
|
public class TrafficSettingsWindowData : SettingsWindowData
|
|
{
|
|
public RoutesColors speedRoutes;
|
|
|
|
public bool showOtherLanes;
|
|
public bool showSpeed;
|
|
|
|
|
|
public bool viewRoadLaneChanges;
|
|
|
|
public bool leftSideTraffic;
|
|
|
|
public int maxSpeed;
|
|
public int nrOfLanes;
|
|
public int otherLaneLinkDistance;
|
|
|
|
public List<VehicleTypes> globalCarList = new List<VehicleTypes>();
|
|
|
|
public bool showAllIntersections;
|
|
public bool showExitWaypoints = true;
|
|
public bool showPedestrianWaypoints = true;
|
|
public bool showDirectionWaypoints = true;
|
|
|
|
internal override SettingsWindowData Initialize()
|
|
{
|
|
if (nrOfLanes == default)
|
|
{
|
|
nrOfLanes = 2;
|
|
}
|
|
if (LaneWidth == default)
|
|
{
|
|
LaneWidth = 4;
|
|
}
|
|
if (WaypointDistance == default)
|
|
{
|
|
WaypointDistance = 4;
|
|
}
|
|
if (maxSpeed == default)
|
|
{
|
|
maxSpeed = 50;
|
|
}
|
|
|
|
if (otherLaneLinkDistance == default)
|
|
{
|
|
otherLaneLinkDistance = 1;
|
|
}
|
|
return this;
|
|
}
|
|
}
|
|
} |