C# Class TrafficManager.Custom.PathFinding.CustomPathFind

Inheritance: PathFind
Afficher le fichier Open project: Katalyst6/CSL.TransitAddonMod

Méthodes publiques

Свойство Type Description
IsMasterPathFind bool
SYNC_TIMEOUT int
_failedPathFinds uint
_succeededPathFinds uint

Private Properties

Свойство Type Description
AddBufferItem void
CalculateLaneSpeed float
FindNthCompatibleLane int
GetLaneDirection void
HandleLaneMergesAndSplits void
PathFindThread void
ProcessItem2 void
ProcessItemCosts bool
ProcessItemCosts bool
ProcessItemMain void
ProcessItemPedBicycle void

Méthodes publiques

Méthode Description
CalculatePath ( ExtVehicleType vehicleType, uint unit, bool skipQueue ) : bool

Méthodes protégées

Méthode Description
Awake ( ) : void
CanLanesConnect ( uint laneId1, uint laneId2 ) : bool
CanUseLane ( bool debug, ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo ) : bool
GetLaneSpeedLimit ( ushort segmentId, uint laneIndex, uint laneId, NetInfo lane ) : float
IsLaneArrowChangerEnabled ( ) : bool
OnDestroy ( ) : void
PathFindImplementation ( uint unit, PathUnit &data ) : void

Private Methods

Méthode Description
AddBufferItem ( BufferItem item, PathUnit target ) : void
CalculateLaneSpeed ( float speedLimit, byte startOffset, byte endOffset, NetSegment &segment, NetInfo laneInfo ) : float
FindNthCompatibleLane ( uint &indexBySimilarLaneIndex, int prevRightSimilarLaneIndex ) : int
GetLaneDirection ( PathUnit pathPos, NetInfo &direction, NetInfo &type ) : void
HandleLaneMergesAndSplits ( int prevRightSimilarLaneIndex, int nextCompatibleLaneCount, int prevSimilarLaneCount, int &minNextRightSimilarLaneIndex, int &maxNextRightSimilarLaneIndex ) : void
PathFindThread ( ) : void
ProcessItem2 ( BufferItem item, ushort targetNodeId, bool targetDisabled, ushort nextSegmentId, NetSegment &nextSegment, uint lane, byte offset, byte connectOffset ) : void
ProcessItemCosts ( bool allowCustomLaneChanging, bool debug, BufferItem item, ushort targetNode, ushort segmentID, NetSegment &segment, int &laneIndexFromLeft, byte connectOffset, bool enableVehicle, bool enablePedestrian ) : bool
ProcessItemCosts ( bool allowCustomLaneChanging, bool debug, BufferItem item, ushort targetNodeId, ushort nextSegmentId, NetSegment &nextSegment, int &laneIndexFromLeft, byte connectOffset, bool enableVehicle, bool enablePedestrian, int forceLaneIndex, uint forceLaneId, bool &foundForced ) : bool
ProcessItemMain ( uint unitId, BufferItem item, ushort nextNodeId, NetNode &nextNode, byte connectOffset, bool isMiddle ) : void
ProcessItemPedBicycle ( BufferItem item, ushort targetNodeId, ushort segmentID, NetSegment &segment, byte connectOffset, int laneIndex, uint lane ) : void

Method Details

Awake() protected méthode

protected Awake ( ) : void
Résultat void

CalculatePath() public méthode

public CalculatePath ( ExtVehicleType vehicleType, uint unit, bool skipQueue ) : bool
vehicleType ExtVehicleType
unit uint
skipQueue bool
Résultat bool

CanLanesConnect() protected méthode

protected CanLanesConnect ( uint laneId1, uint laneId2 ) : bool
laneId1 uint
laneId2 uint
Résultat bool

CanUseLane() protected méthode

protected CanUseLane ( bool debug, ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo ) : bool
debug bool
segmentId ushort
laneIndex uint
laneId uint
laneInfo NetInfo
Résultat bool

GetLaneSpeedLimit() protected méthode

protected GetLaneSpeedLimit ( ushort segmentId, uint laneIndex, uint laneId, NetInfo lane ) : float
segmentId ushort
laneIndex uint
laneId uint
lane NetInfo
Résultat float

IsLaneArrowChangerEnabled() protected méthode

protected IsLaneArrowChangerEnabled ( ) : bool
Résultat bool

OnDestroy() protected méthode

protected OnDestroy ( ) : void
Résultat void

PathFindImplementation() protected méthode

protected PathFindImplementation ( uint unit, PathUnit &data ) : void
unit uint
data PathUnit
Résultat void

Property Details

IsMasterPathFind public_oe property

public bool IsMasterPathFind
Résultat bool

SYNC_TIMEOUT public_oe static_oe property

public static int SYNC_TIMEOUT
Résultat int

_failedPathFinds public_oe property

public uint _failedPathFinds
Résultat uint

_succeededPathFinds public_oe property

public uint _succeededPathFinds
Résultat uint