C# Класс CSL_Traffic.TPPPathFind

Наследование: IExtendedPathFind
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
AddBufferItem void
CalculateLaneSpeed float
GetLaneDirection void
PathFindImplementation void
PathFindThread void
ProcessItem bool
ProcessItem void
ProcessItem void
ProcessItem void

Открытые методы

Метод Описание
CalculatePath ( uint unit, bool skipQueue ) : bool
CalculatePath ( uint unit, bool skipQueue, ExtendedVehicleType vehicleType ) : bool
OnAwake ( ) : void
OnDestroy ( ) : void
WaitForAllPaths ( ) : void

Приватные методы

Метод Описание
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

Описание методов

CalculatePath() публичный Метод

public CalculatePath ( uint unit, bool skipQueue ) : bool
unit uint
skipQueue bool
Результат bool

CalculatePath() публичный Метод

public CalculatePath ( uint unit, bool skipQueue, ExtendedVehicleType vehicleType ) : bool
unit uint
skipQueue bool
vehicleType ExtendedVehicleType
Результат bool

OnAwake() публичный Метод

public OnAwake ( ) : void
Результат void

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

WaitForAllPaths() публичный Метод

public WaitForAllPaths ( ) : void
Результат void