C# 클래스 TrafficManager.TrafficLight.TrafficLightTool

상속: DefaultTool
파일 보기 프로젝트 열기: seiggy/Skylines-Traffic-Manager

공개 프로퍼티들

프로퍼티 타입 설명
SelectedNodeIndexes List

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Awake ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnToolGUI ( ) : void
OnToolUpdate ( ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

AddTimedNodes() 공개 메소드

public AddTimedNodes ( ) : void
리턴 void

Awake() 보호된 메소드

protected Awake ( ) : void
리턴 void

GetCurrentNetNode() 공개 메소드

public GetCurrentNetNode ( ) : NetNode
리턴 NetNode

GetNetNode() 공개 정적인 메소드

public static GetNetNode ( ushort index ) : NetNode
index ushort
리턴 NetNode

OnDisable() 보호된 메소드

protected OnDisable ( ) : void
리턴 void

OnEnable() 보호된 메소드

protected OnEnable ( ) : void
리턴 void

OnToolGUI() 보호된 메소드

protected OnToolGUI ( ) : void
리턴 void

OnToolUpdate() 보호된 메소드

protected OnToolUpdate ( ) : void
리턴 void

RenderGeometry() 공개 메소드

public RenderGeometry ( RenderManager cameraInfo ) : void
cameraInfo RenderManager
리턴 void

RenderOverlay() 공개 메소드

public RenderOverlay ( RenderManager cameraInfo ) : void
cameraInfo RenderManager
리턴 void

SetNetNode() 공개 정적인 메소드

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

SetToolMode() 공개 정적인 메소드

public static SetToolMode ( ToolMode mode ) : void
mode ToolMode
리턴 void

SimulationStep() 공개 메소드

public SimulationStep ( ) : void
리턴 void

SwitchManual() 공개 메소드

public SwitchManual ( ) : bool
리턴 bool

프로퍼티 상세

SelectedNodeIndexes 공개적으로 정적으로 프로퍼티

public static List SelectedNodeIndexes
리턴 List