C# Class TrafficManager_ImprovedAI.TrafficLightTool

Inheritance: DefaultTool
ファイルを表示 Open project: fadster/TrafficManager_ImprovedAI Class Usage Examples

Public Properties

Property Type Description
SelectedNodeIndexes List
SelectedSegmentIndexes List
sliderValues float[]
stepValue float
toolMode ToolMode

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

public AddTimedNodes ( ) : void
return void

Awake() protected method

protected Awake ( ) : void
return void

DisableManual() public static method

public static DisableManual ( ) : void
return void

DisableTimed() public method

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

LoadDllResource() public static method

public static LoadDllResource ( string resourceName, int width, int height ) : Texture2D
resourceName string
width int
height int
return UnityEngine.Texture2D

OnDisable() protected method

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

OnToolGUI() protected method

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

SimulationStep() public method

public SimulationStep ( ) : void
return void

SwitchManual() public method

public SwitchManual ( ) : bool
return bool

_guiLaneChange() protected method

protected _guiLaneChange ( ) : void
return void

_guiLaneChangeWindow() protected method

protected _guiLaneChangeWindow ( int num ) : void
num int
return void

_guiLaneRestrictions() protected method

protected _guiLaneRestrictions ( ) : void
return void

_guiLaneRestrictionsOneWayWindow() protected method

protected _guiLaneRestrictionsOneWayWindow ( int num ) : void
num int
return void

_guiManualTrafficLights() protected method

protected _guiManualTrafficLights ( ) : void
return void

_guiManualTrafficLightsCrosswalk() protected method

protected _guiManualTrafficLightsCrosswalk ( NetNode node ) : void
node NetNode
return void

_guiPrioritySigns() protected method

protected _guiPrioritySigns ( ) : void
return void

_guiTimedControlPanel() protected method

protected _guiTimedControlPanel ( int num ) : void
num int
return void

_guiTimedTrafficLights() protected method

protected _guiTimedTrafficLights ( ) : void
return void

_guiTimedTrafficLightsNode() protected method

protected _guiTimedTrafficLightsNode ( ) : void
return void

_guiTimedTrafficLightsNodeWindow() protected method

protected _guiTimedTrafficLightsNodeWindow ( int num ) : void
num int
return void

_renderOverlayCrosswalk() public method

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

_renderOverlayDraw() public method

public _renderOverlayDraw ( RenderManager cameraInfo, Bezier3 bezier, Color color ) : void
cameraInfo RenderManager
bezier Bezier3
color Color
return void

_renderOverlayDraw() public method

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

_renderOverlayLaneChange() public method

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

_renderOverlayLaneRestrictions() public method

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

_renderOverlayManual() public method

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

_renderOverlayPriority() public method

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

_renderOverlaySwitch() public method

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

_renderOverlayTimedSelectNodes() public method

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

_switchTrafficLights() protected method

protected _switchTrafficLights ( ) : void
return void

addListNode() public static method

public static addListNode ( ushort node ) : void
node ushort
return void

addListSegment() public static method

public static addListSegment ( int segment ) : void
segment int
return void

containsListNode() public static method

public static containsListNode ( ushort node ) : bool
node ushort
return bool

containsListSegment() public static method

public static containsListSegment ( int segment ) : bool
segment int
return bool

laneFlag() public method

public laneFlag ( uint laneID, NetLane flag ) : void
laneID uint
flag NetLane
return void

removeListNode() public static method

public static removeListNode ( ushort node ) : void
node ushort
return void

removeListSegment() public static method

public static removeListSegment ( int segment ) : void
segment int
return void

setToolMode() public static method

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

validCrosswalkNode() protected method

protected validCrosswalkNode ( ushort nodeid, NetNode node ) : bool
nodeid ushort
node NetNode
return bool

Property Details

SelectedNodeIndexes public_oe static_oe property

public static List SelectedNodeIndexes
return List

SelectedSegmentIndexes public_oe static_oe property

public static List SelectedSegmentIndexes
return List

sliderValues public_oe property

public float[] sliderValues
return float[]

stepValue public_oe property

public float stepValue
return float

toolMode public_oe static_oe property

public static ToolMode toolMode
return ToolMode