C# Class TrafficManager.TrafficLight.TrafficLightTool

Inheritance: DefaultTool
Afficher le fichier Open project: seiggy/Skylines-Traffic-Manager

Méthodes publiques

Свойство Type Description
SelectedNodeIndexes List

Méthodes publiques

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

Méthodes protégées

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

Private Methods

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

public AddTimedNodes ( ) : void
Résultat void

Awake() protected méthode

protected Awake ( ) : void
Résultat void

GetCurrentNetNode() public méthode

public GetCurrentNetNode ( ) : NetNode
Résultat NetNode

GetNetNode() public static méthode

public static GetNetNode ( ushort index ) : NetNode
index ushort
Résultat NetNode

OnDisable() protected méthode

protected OnDisable ( ) : void
Résultat void

OnEnable() protected méthode

protected OnEnable ( ) : void
Résultat void

OnToolGUI() protected méthode

protected OnToolGUI ( ) : void
Résultat void

OnToolUpdate() protected méthode

protected OnToolUpdate ( ) : void
Résultat void

RenderGeometry() public méthode

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

RenderOverlay() public méthode

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

SetNetNode() public static méthode

public static SetNetNode ( ushort index, NetNode node ) : void
index ushort
node NetNode
Résultat void

SetToolMode() public static méthode

public static SetToolMode ( ToolMode mode ) : void
mode ToolMode
Résultat void

SimulationStep() public méthode

public SimulationStep ( ) : void
Résultat void

SwitchManual() public méthode

public SwitchManual ( ) : bool
Résultat bool

Property Details

SelectedNodeIndexes public_oe static_oe property

public static List SelectedNodeIndexes
Résultat List