C# Class TrafficManager.TrafficLight.CustomTrafficLights

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

Public Properties

Property Type Description
ManualSegments CustomSegment>.Dictionary

Public Methods

Method Description
AddSegmentLights ( ushort nodeId, ushort segmentId, RoadBaseAI light ) : void
GetOrLiveSegmentLights ( ushort nodeId, ushort segmentId ) : CustomSegmentLights
GetSegmentLights ( ushort nodeId, ushort segmentId ) : CustomSegmentLights
IsSegmentLight ( ushort nodeId, ushort segmentId ) : bool
RemoveSegmentLight ( ushort segmentId ) : void
RemoveSegmentLight ( ushort nodeId, ushort segmentId ) : void

Private Methods

Method Description
AddLiveSegmentLights ( ushort nodeId, ushort segmentId ) : void
OnLevelUnloading ( ) : void

Method Details

AddSegmentLights() public static method

public static AddSegmentLights ( ushort nodeId, ushort segmentId, RoadBaseAI light ) : void
nodeId ushort
segmentId ushort
light RoadBaseAI
return void

GetOrLiveSegmentLights() public static method

public static GetOrLiveSegmentLights ( ushort nodeId, ushort segmentId ) : CustomSegmentLights
nodeId ushort
segmentId ushort
return CustomSegmentLights

GetSegmentLights() public static method

public static GetSegmentLights ( ushort nodeId, ushort segmentId ) : CustomSegmentLights
nodeId ushort
segmentId ushort
return CustomSegmentLights

IsSegmentLight() public static method

public static IsSegmentLight ( ushort nodeId, ushort segmentId ) : bool
nodeId ushort
segmentId ushort
return bool

RemoveSegmentLight() public static method

public static RemoveSegmentLight ( ushort segmentId ) : void
segmentId ushort
return void

RemoveSegmentLight() public static method

public static RemoveSegmentLight ( ushort nodeId, ushort segmentId ) : void
nodeId ushort
segmentId ushort
return void

Property Details

ManualSegments public_oe static_oe property

Manual light by segment id
public static Dictionary ManualSegments
return CustomSegment>.Dictionary