C# Class TrafficManager.TrafficLight.CustomSegmentLights

Inheritance: ICloneable
Exibir arquivo Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Public Properties

Property Type Description
LastChangeFrame uint

Protected Properties

Property Type Description
mainSegmentLight CustomSegmentLight
pedestrianLightState RoadBaseAI.TrafficLightState?

Public Methods

Method Description
Clone ( ) : object
CustomSegmentLights ( ushort nodeId, ushort segmentId, RoadBaseAI mainState ) : System
CustomSegmentLights ( ushort nodeId, ushort segmentId, RoadBaseAI mainState, RoadBaseAI leftState, RoadBaseAI rightState, RoadBaseAI pedState ) : System
GetAutoPedestrianLightState ( ) : RoadBaseAI.TrafficLightState
LastChange ( ) : uint
OnChange ( ) : void
UpdateVisuals ( ) : void

Protected Methods

Method Description
CustomSegmentLights ( ushort nodeId, ushort segmentId ) : System

Private Methods

Method Description
ChangeLightPedestrian ( ) : void
GetCustomLight ( ExtVehicleType vehicleType ) : CustomSegmentLight
MakeRed ( ) : void
MakeRedOrGreen ( ) : void
SetLights ( CustomSegmentLights otherLights ) : void
getCurrentFrame ( ) : uint
housekeeping ( bool mayDelete, RoadBaseAI mainState = RoadBaseAI.TrafficLightState.Red, RoadBaseAI leftState = RoadBaseAI.TrafficLightState.Red, RoadBaseAI rightState = RoadBaseAI.TrafficLightState.Red, RoadBaseAI pedState = RoadBaseAI.TrafficLightState.Red ) : void

Method Details

Clone() public method

public Clone ( ) : object
return object

CustomSegmentLights() protected method

protected CustomSegmentLights ( ushort nodeId, ushort segmentId ) : System
nodeId ushort
segmentId ushort
return System

CustomSegmentLights() public method

public CustomSegmentLights ( ushort nodeId, ushort segmentId, RoadBaseAI mainState ) : System
nodeId ushort
segmentId ushort
mainState RoadBaseAI
return System

CustomSegmentLights() public method

public CustomSegmentLights ( ushort nodeId, ushort segmentId, RoadBaseAI mainState, RoadBaseAI leftState, RoadBaseAI rightState, RoadBaseAI pedState ) : System
nodeId ushort
segmentId ushort
mainState RoadBaseAI
leftState RoadBaseAI
rightState RoadBaseAI
pedState RoadBaseAI
return System

GetAutoPedestrianLightState() public method

public GetAutoPedestrianLightState ( ) : RoadBaseAI.TrafficLightState
return RoadBaseAI.TrafficLightState

LastChange() public method

public LastChange ( ) : uint
return uint

OnChange() public method

public OnChange ( ) : void
return void

UpdateVisuals() public method

public UpdateVisuals ( ) : void
return void

Property Details

LastChangeFrame public_oe property

public uint LastChangeFrame
return uint

mainSegmentLight protected_oe property

protected CustomSegmentLight,TrafficManager.TrafficLight mainSegmentLight
return CustomSegmentLight

pedestrianLightState protected_oe property

protected RoadBaseAI.TrafficLightState? pedestrianLightState
return RoadBaseAI.TrafficLightState?