C# Class CSL_Traffic.TPPPathFind

Inheritance: IExtendedPathFind
Show file Open project: Katalyst6/CSL.TransitAddonMod

Private Properties

Property Type Description
AddBufferItem void
CalculateLaneSpeed float
GetLaneDirection void
PathFindImplementation void
PathFindThread void
ProcessItem bool
ProcessItem void
ProcessItem void
ProcessItem void

Public Methods

Method Description
CalculatePath ( uint unit, bool skipQueue ) : bool
CalculatePath ( uint unit, bool skipQueue, ExtendedVehicleType vehicleType ) : bool
OnAwake ( ) : void
OnDestroy ( ) : void
WaitForAllPaths ( ) : void

Private Methods

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

Method Details

CalculatePath() public method

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

CalculatePath() public method

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

OnAwake() public method

public OnAwake ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

WaitForAllPaths() public method

public WaitForAllPaths ( ) : void
return void