C# Class CSL_Traffic.RoadCustomizerTool

Inheritance: ToolBase
Show file Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Private Properties

Property Type Description
CreateToolButton IEnumerator
HandleIntersectionRouting void
HandleLaneCustomization void
IsActive bool
RayCastSegmentAndNode bool
RayCastSegmentAndNode bool
RenderLane void
RenderLane void
RenderVehicle IEnumerator
SetLaneMarkers void
SetNodeMarkers void
SetRoadCustomizerTool IEnumerator
SetSegments void
SetSegments void
TryCreateToolButton UIButton

Public Methods

Method Description
GetCurrentSpeedRestrictions ( ) : float
GetCurrentVehicleRestrictions ( ) : ExtendedVehicleType
InitializeUI ( UIButton button ) : bool
RenderOverlay ( RenderManager cameraInfo ) : void
SetNodeMarkers ( ushort nodeId, bool overwrite = false ) : void
SetSpeedRestrictions ( int speed ) : void
ToggleRestriction ( ExtendedVehicleType vehicleType ) : ExtendedVehicleType

Protected Methods

Method Description
Awake ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnToolUpdate ( ) : void

Private Methods

Method Description
CreateToolButton ( ) : IEnumerator
HandleIntersectionRouting ( ) : void
HandleLaneCustomization ( ) : void
IsActive ( NodeLaneMarker marker ) : bool
RayCastSegmentAndNode ( RaycastOutput &output ) : bool
RayCastSegmentAndNode ( ushort &netSegment, ushort &netNode ) : bool
RenderLane ( RenderManager cameraInfo, Vector3 start, Vector3 end, Color color, float size = 0.1f ) : void
RenderLane ( RenderManager cameraInfo, Vector3 start, Vector3 end, Vector3 middlePoint, Color color, float size = 0.1f ) : void
RenderVehicle ( ) : IEnumerator
SetLaneMarkers ( ) : void
SetNodeMarkers ( ushort nodeId, FastList nodeMarkers ) : void
SetRoadCustomizerTool ( ) : IEnumerator
SetSegments ( ushort segmentId ) : void
SetSegments ( ushort segmentId, ushort infoIndex, Segment &previousSeg ) : void
TryCreateToolButton ( ) : UIButton

Method Details

Awake() protected method

protected Awake ( ) : void
return void

GetCurrentSpeedRestrictions() public method

public GetCurrentSpeedRestrictions ( ) : float
return float

GetCurrentVehicleRestrictions() public method

public GetCurrentVehicleRestrictions ( ) : ExtendedVehicleType
return ExtendedVehicleType

InitializeUI() public static method

public static InitializeUI ( UIButton button ) : bool
button UIButton
return bool

OnDisable() protected method

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

OnToolUpdate() protected method

protected OnToolUpdate ( ) : void
return void

RenderOverlay() public method

public RenderOverlay ( RenderManager cameraInfo ) : void
cameraInfo RenderManager
return void

SetNodeMarkers() public method

public SetNodeMarkers ( ushort nodeId, bool overwrite = false ) : void
nodeId ushort
overwrite bool
return void

SetSpeedRestrictions() public method

public SetSpeedRestrictions ( int speed ) : void
speed int
return void

ToggleRestriction() public method

public ToggleRestriction ( ExtendedVehicleType vehicleType ) : ExtendedVehicleType
vehicleType ExtendedVehicleType
return ExtendedVehicleType