C# Class TrafficManager_ImprovedAI.TrafficLightTool

Inheritance: DefaultTool
Afficher le fichier Open project: fadster/TrafficManager_ImprovedAI Class Usage Examples

Méthodes publiques

Свойство Type Description
SelectedNodeIndexes List
SelectedSegmentIndexes List
sliderValues float[]
stepValue float
toolMode ToolMode

Méthodes publiques

Méthode Description
AddTimedNodes ( ) : void
DisableManual ( ) : void
DisableTimed ( ) : void
GetCurrentNetNode ( ) : NetNode
GetNetNode ( ushort index ) : NetNode
LoadDllResource ( string resourceName, int width, int height ) : Texture2D
RenderGeometry ( RenderManager cameraInfo ) : void
RenderOverlay ( RenderManager cameraInfo ) : void
SetNetNode ( ushort index, NetNode node ) : void
SimulationStep ( ) : void
SwitchManual ( ) : bool
_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
_renderOverlayPriority ( RenderManager cameraInfo ) : void
_renderOverlaySwitch ( RenderManager cameraInfo ) : void
_renderOverlayTimedSelectNodes ( RenderManager cameraInfo ) : void
addListNode ( ushort node ) : void
addListSegment ( int segment ) : void
containsListNode ( ushort node ) : bool
containsListSegment ( int segment ) : bool
laneFlag ( uint laneID, NetLane flag ) : void
removeListNode ( ushort node ) : void
removeListSegment ( int segment ) : void
setToolMode ( ToolMode mode ) : void

Méthodes protégées

Méthode Description
Awake ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnToolGUI ( Event e ) : void
OnToolUpdate ( ) : void
_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
_switchTrafficLights ( ) : void
validCrosswalkNode ( ushort nodeid, NetNode node ) : bool

Private Methods

Méthode Description
CreateZoneBlocks ( int segment, NetSegment &data, NetInfo info ) : void
MakeTex ( int width, int height, Color col ) : Texture2D
ReadToEnd ( Stream stream ) : byte[]
ResizeGUI ( Rect _rect ) : Rect

Method Details

AddTimedNodes() public méthode

public AddTimedNodes ( ) : void
Résultat void

Awake() protected méthode

protected Awake ( ) : void
Résultat void

DisableManual() public static méthode

public static DisableManual ( ) : void
Résultat void

DisableTimed() public méthode

public DisableTimed ( ) : 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

LoadDllResource() public static méthode

public static LoadDllResource ( string resourceName, int width, int height ) : Texture2D
resourceName string
width int
height int
Résultat UnityEngine.Texture2D

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 ( Event e ) : void
e UnityEngine.Event
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

SimulationStep() public méthode

public SimulationStep ( ) : void
Résultat void

SwitchManual() public méthode

public SwitchManual ( ) : bool
Résultat bool

_guiLaneChange() protected méthode

protected _guiLaneChange ( ) : void
Résultat void

_guiLaneChangeWindow() protected méthode

protected _guiLaneChangeWindow ( int num ) : void
num int
Résultat void

_guiLaneRestrictions() protected méthode

protected _guiLaneRestrictions ( ) : void
Résultat void

_guiLaneRestrictionsOneWayWindow() protected méthode

protected _guiLaneRestrictionsOneWayWindow ( int num ) : void
num int
Résultat void

_guiManualTrafficLights() protected méthode

protected _guiManualTrafficLights ( ) : void
Résultat void

_guiManualTrafficLightsCrosswalk() protected méthode

protected _guiManualTrafficLightsCrosswalk ( NetNode node ) : void
node NetNode
Résultat void

_guiPrioritySigns() protected méthode

protected _guiPrioritySigns ( ) : void
Résultat void

_guiTimedControlPanel() protected méthode

protected _guiTimedControlPanel ( int num ) : void
num int
Résultat void

_guiTimedTrafficLights() protected méthode

protected _guiTimedTrafficLights ( ) : void
Résultat void

_guiTimedTrafficLightsNode() protected méthode

protected _guiTimedTrafficLightsNode ( ) : void
Résultat void

_guiTimedTrafficLightsNodeWindow() protected méthode

protected _guiTimedTrafficLightsNodeWindow ( int num ) : void
num int
Résultat void

_renderOverlayCrosswalk() public méthode

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

_renderOverlayDraw() public méthode

public _renderOverlayDraw ( RenderManager cameraInfo, Bezier3 bezier, Color color ) : void
cameraInfo RenderManager
bezier Bezier3
color Color
Résultat void

_renderOverlayDraw() public méthode

public _renderOverlayDraw ( RenderManager cameraInfo, Color color, Vector3 position, float width, bool alpha ) : void
cameraInfo RenderManager
color Color
position Vector3
width float
alpha bool
Résultat void

_renderOverlayLaneChange() public méthode

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

_renderOverlayLaneRestrictions() public méthode

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

_renderOverlayManual() public méthode

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

_renderOverlayPriority() public méthode

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

_renderOverlaySwitch() public méthode

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

_renderOverlayTimedSelectNodes() public méthode

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

_switchTrafficLights() protected méthode

protected _switchTrafficLights ( ) : void
Résultat void

addListNode() public static méthode

public static addListNode ( ushort node ) : void
node ushort
Résultat void

addListSegment() public static méthode

public static addListSegment ( int segment ) : void
segment int
Résultat void

containsListNode() public static méthode

public static containsListNode ( ushort node ) : bool
node ushort
Résultat bool

containsListSegment() public static méthode

public static containsListSegment ( int segment ) : bool
segment int
Résultat bool

laneFlag() public méthode

public laneFlag ( uint laneID, NetLane flag ) : void
laneID uint
flag NetLane
Résultat void

removeListNode() public static méthode

public static removeListNode ( ushort node ) : void
node ushort
Résultat void

removeListSegment() public static méthode

public static removeListSegment ( int segment ) : void
segment int
Résultat void

setToolMode() public static méthode

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

validCrosswalkNode() protected méthode

protected validCrosswalkNode ( ushort nodeid, NetNode node ) : bool
nodeid ushort
node NetNode
Résultat bool

Property Details

SelectedNodeIndexes public_oe static_oe property

public static List SelectedNodeIndexes
Résultat List

SelectedSegmentIndexes public_oe static_oe property

public static List SelectedSegmentIndexes
Résultat List

sliderValues public_oe property

public float[] sliderValues
Résultat float[]

stepValue public_oe property

public float stepValue
Résultat float

toolMode public_oe static_oe property

public static ToolMode toolMode
Résultat ToolMode