C# Class TrafficManager.CustomPathFind

Inheritance: PathFind
显示文件 Open project: seiggy/Skylines-Traffic-Manager Class Usage Examples

Private Properties

Property Type Description
AddBufferItem void
CalculateLaneSpeed float
GetLaneDirection void
PathFindImplementation void
PathFindThread void
ProcessItem1 void
ProcessItem2 void
ProcessItem3 void
ProcessItem4 bool
ProcessItem5 void

Public Methods

Method Description
CalculatePath ( uint unit, bool skipQueue ) : bool
CustomPathFind ( ) : System
WaitForAllPaths ( ) : void

Protected Methods

Method Description
Awake ( ) : void
GetLaneFlags ( ushort segmentId, ushort nodeId ) : NetLane.Flags
OnDestroy ( ) : void

Private Methods

Method Description
AddBufferItem ( BufferItem item, PathUnit target ) : void
CalculateLaneSpeed ( byte startOffset, byte endOffset, NetSegment &segment, NetInfo laneInfo ) : float
GetLaneDirection ( PathUnit pathPos, NetInfo &direction, NetInfo &type ) : void
PathFindImplementation ( uint unit, PathUnit &data ) : void
PathFindThread ( ) : void
ProcessItem1 ( BufferItem item, ushort nodeId, NetNode &node, byte connectOffset, bool isMiddle, PathUnit &data ) : void
ProcessItem2 ( BufferItem item, ushort targetNode, ushort segmentId, NetSegment &segment, int &currentTargetIndex, byte connectOffset, bool enableVehicle, bool enablePedestrian, uint laneId, int laneNum ) : void
ProcessItem3 ( BufferItem item, bool targetDisabled, ushort segmentId, NetSegment &segment, uint lane, byte offset, byte connectOffset ) : void
ProcessItem4 ( BufferItem item, ushort targetNode, ushort segmentId, NetSegment &segment, int &currentTargetIndex, byte connectOffset, bool enableVehicle, bool enablePedestrian ) : bool
ProcessItem5 ( BufferItem item, ushort targetNode, ushort segmentId, NetSegment &segment, byte connectOffset, int laneIndex, uint lane ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

CalculatePath() public method

public CalculatePath ( uint unit, bool skipQueue ) : bool
unit uint
skipQueue bool
return bool

CustomPathFind() public method

public CustomPathFind ( ) : System
return System

GetLaneFlags() protected method

protected GetLaneFlags ( ushort segmentId, ushort nodeId ) : NetLane.Flags
segmentId ushort
nodeId ushort
return NetLane.Flags

OnDestroy() protected method

protected OnDestroy ( ) : void
return void

WaitForAllPaths() public method

public WaitForAllPaths ( ) : void
return void