C# Class CSL_Traffic.RoadCustomizerTool

Inheritance: ToolBase
Afficher le fichier Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Awake ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnToolUpdate ( ) : void

Private Methods

Méthode 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 méthode

protected Awake ( ) : void
Résultat void

GetCurrentSpeedRestrictions() public méthode

public GetCurrentSpeedRestrictions ( ) : float
Résultat float

GetCurrentVehicleRestrictions() public méthode

public GetCurrentVehicleRestrictions ( ) : ExtendedVehicleType
Résultat ExtendedVehicleType

InitializeUI() public static méthode

public static InitializeUI ( UIButton button ) : bool
button UIButton
Résultat bool

OnDisable() protected méthode

protected OnDisable ( ) : void
Résultat void

OnEnable() protected méthode

protected OnEnable ( ) : void
Résultat void

OnToolUpdate() protected méthode

protected OnToolUpdate ( ) : void
Résultat void

RenderOverlay() public méthode

public RenderOverlay ( RenderManager cameraInfo ) : void
cameraInfo RenderManager
Résultat void

SetNodeMarkers() public méthode

public SetNodeMarkers ( ushort nodeId, bool overwrite = false ) : void
nodeId ushort
overwrite bool
Résultat void

SetSpeedRestrictions() public méthode

public SetSpeedRestrictions ( int speed ) : void
speed int
Résultat void

ToggleRestriction() public méthode

public ToggleRestriction ( ExtendedVehicleType vehicleType ) : ExtendedVehicleType
vehicleType ExtendedVehicleType
Résultat ExtendedVehicleType