C# Class TrafficManager.TrafficLight.TrafficLightTool

Inheritance: DefaultTool
Mostrar archivo Open project: seiggy/Skylines-Traffic-Manager

Public Properties

Property Type Description
SelectedNodeIndexes List

Public Methods

Method Description
AddTimedNodes ( ) : void
GetCurrentNetNode ( ) : NetNode
GetNetNode ( ushort index ) : NetNode
RenderGeometry ( RenderManager cameraInfo ) : void
RenderOverlay ( RenderManager cameraInfo ) : void
SetNetNode ( ushort index, NetNode node ) : void
SetToolMode ( ToolMode mode ) : void
SimulationStep ( ) : void
SwitchManual ( ) : bool

Protected Methods

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

Private Methods

Method Description
AddListNode ( ushort node ) : void
AddListSegment ( int segment ) : void
AddPrioritySignsToolMode ( NetNode node ) : void
CalculateNodePositionForSegment ( NetNode node, NetSegment segment ) : Vector3
CalculateNodePositionForSegment ( NetNode node, int segmentId ) : Vector3
ContainsListNode ( ushort node ) : bool
ContainsListSegment ( int segment ) : bool
CreateZoneBlocks ( int segment, NetSegment &data, NetInfo info ) : void
CrosswalkToolMode ( ) : void
DisableManual ( ) : void
DisableTimed ( ) : void
ForwardArrowLightMode ( int segmentId, float lightWidth, bool hasRightSegment, Vector3 screenPos, float pedestrianWidth, float zoom, float lightHeight, ManualSegmentLight segmentDict, bool hoveredSegment ) : bool
GetHoveredSegment ( Rect myRect1, int segmentId, bool hoveredSegment, ManualSegmentLight segmentDict ) : bool
GetNumberOfMainRoads ( NetNode node ) : int
IsCursorInSecondaryPanel ( ) : void
IsMouseOverSegment ( Rect nodeBoundingBox, int segmentId ) : bool
IsPedestrianLightHovered ( Rect myRect3, int segmentId, bool hoveredSegment, ManualSegmentLight segmentDict ) : bool
LaneChangeToolMode ( ) : void
LaneFlag ( uint laneId, NetLane flag ) : void
LaneRestrictionsToolMode ( ) : void
LeftArrowLightMode ( int segmentId, float lightWidth, bool hasRightSegment, bool hasForwardSegment, Vector3 screenPos, float pedestrianWidth, float zoom, float lightHeight, ManualSegmentLight segmentDict, bool hoveredSegment ) : bool
LeftForwardRManualSegmentLightMode ( bool hasLeftSegment, int segmentId, Vector3 screenPos, float lightWidth, float pedestrianWidth, float zoom, float lightHeight, ManualSegmentLight segmentDict, bool hoveredSegment, bool hasForwardSegment, bool hasRightSegment ) : bool
MakeTex ( int width, int height, Color col ) : Texture2D
ManualSwitchToolMode ( NetNode node ) : void
RemoveListNode ( ushort node ) : void
RemoveListSegment ( int segment ) : void
RenderCounter ( int segmentId, Vector3 screenPos, float modeWidth, float modeHeight, float zoom, ManualSegmentLight segmentDict, bool hoveredSegment ) : bool
RenderManualPedestrianLightSwitch ( float zoom, int segmentId, Vector3 screenPos, float lightWidth, ManualSegmentLight segmentDict, bool hoveredSegment ) : bool
RenderNodeOverlays ( RenderManager cameraInfo ) : void
RenderSelectionOverlay ( RenderManager cameraInfo ) : void
ResizeGUI ( Rect rect ) : Rect
RightArrowLightMode ( int segmentId, Vector3 screenPos, float lightWidth, float pedestrianWidth, float zoom, float lightHeight, ManualSegmentLight segmentDict, bool hoveredSegment ) : bool
RightForwardLSegmentLightMode ( int segmentId, Vector3 screenPos, float lightWidth, float pedestrianWidth, float zoom, float lightHeight, bool hasForwardSegment, bool hasLeftSegment, ManualSegmentLight segmentDict, bool hasRightSegment, bool hoveredSegment ) : bool
SetAlpha ( int segmentId, int buttonId ) : void
SimpleManualSegmentLightMode ( int segmentId, Vector3 screenPos, float lightWidth, float pedestrianWidth, float zoom, float lightHeight, ManualSegmentLight segmentDict, bool hoveredSegment ) : bool
SwitchTrafficLightToolMode ( NetNode node ) : void
TimedLightSelectNodeToolMode ( NetNode node ) : void
ValidCrosswalkNode ( ushort nodeid, NetNode node ) : bool
_guiLaneChange ( ) : void
_guiLaneChangeWindow ( int num ) : void
_guiLaneRestrictions ( ) : void
_guiLaneRestrictionsOneWayWindow ( int num ) : void
_guiManualTrafficLights ( ) : void
_guiManualTrafficLightsCrosswalk ( NetNode node ) : void
_guiPrioritySigns ( ) : void
_guiTimedControlPanel ( int num ) : void
_guiTimedTrafficLights ( ) : void
_guiTimedTrafficLightsNode ( ) : void
_guiTimedTrafficLightsNodeWindow ( int num ) : void
_renderOverlayCrosswalk ( RenderManager cameraInfo ) : void
_renderOverlayDraw ( RenderManager cameraInfo, Bezier3 bezier, Color color ) : void
_renderOverlayDraw ( RenderManager cameraInfo, Color color, Vector3 position, float width, bool alpha ) : void
_renderOverlayLaneChange ( RenderManager cameraInfo ) : void
_renderOverlayLaneRestrictions ( RenderManager cameraInfo ) : void
_renderOverlayManual ( RenderManager cameraInfo ) : void
_renderOverlaySwitch ( RenderManager cameraInfo, bool warning = false ) : void
_renderOverlayTimedSelectNodes ( RenderManager cameraInfo ) : void
_switchTrafficLights ( ) : void

Method Details

AddTimedNodes() public method

public AddTimedNodes ( ) : void
return void

Awake() protected method

protected Awake ( ) : void
return void

GetCurrentNetNode() public method

public GetCurrentNetNode ( ) : NetNode
return NetNode

GetNetNode() public static method

public static GetNetNode ( ushort index ) : NetNode
index ushort
return NetNode

OnDisable() protected method

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

OnToolGUI() protected method

protected OnToolGUI ( ) : void
return void

OnToolUpdate() protected method

protected OnToolUpdate ( ) : void
return void

RenderGeometry() public method

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

RenderOverlay() public method

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

SetNetNode() public static method

public static SetNetNode ( ushort index, NetNode node ) : void
index ushort
node NetNode
return void

SetToolMode() public static method

public static SetToolMode ( ToolMode mode ) : void
mode ToolMode
return void

SimulationStep() public method

public SimulationStep ( ) : void
return void

SwitchManual() public method

public SwitchManual ( ) : bool
return bool

Property Details

SelectedNodeIndexes public_oe static_oe property

public static List SelectedNodeIndexes
return List