26 lines
1.0 KiB
C#
26 lines
1.0 KiB
C#
namespace RoadArchitect
|
|
{
|
|
public class TrafficLightSequence
|
|
{
|
|
public bool isLightMasterPath1 = true;
|
|
public TrafficLightController.iLightControllerEnum lightController = TrafficLightController.iLightControllerEnum.Regular;
|
|
public TrafficLightController.iLightSubStatusEnum lightSubcontroller = TrafficLightController.iLightSubStatusEnum.Green;
|
|
public float time = 10f;
|
|
|
|
|
|
public TrafficLightSequence(bool _isPath1, TrafficLightController.iLightControllerEnum _lightController, TrafficLightController.iLightSubStatusEnum _lightSubcontroller, float _time)
|
|
{
|
|
isLightMasterPath1 = _isPath1;
|
|
lightController = _lightController;
|
|
lightSubcontroller = _lightSubcontroller;
|
|
time = _time;
|
|
}
|
|
|
|
|
|
public string ToStringRA()
|
|
{
|
|
return "Path1: " + isLightMasterPath1 + " iLightController: " + lightController.ToString() + " iLightSubcontroller: " + lightSubcontroller.ToString() + " tTime: " + time.ToString("0F");
|
|
}
|
|
}
|
|
}
|