C# 클래스 TrafficManager.Custom.PathFinding.CustomPathFind

상속: PathFind
파일 보기 프로젝트 열기: Katalyst6/CSL.TransitAddonMod

공개 프로퍼티들

프로퍼티 타입 설명
IsMasterPathFind bool
SYNC_TIMEOUT int
_failedPathFinds uint
_succeededPathFinds uint

Private Properties

프로퍼티 타입 설명
AddBufferItem void
CalculateLaneSpeed float
FindNthCompatibleLane int
GetLaneDirection void
HandleLaneMergesAndSplits void
PathFindThread void
ProcessItem2 void
ProcessItemCosts bool
ProcessItemCosts bool
ProcessItemMain void
ProcessItemPedBicycle void

공개 메소드들

메소드 설명
CalculatePath ( ExtVehicleType vehicleType, uint unit, bool skipQueue ) : bool

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Awake() 보호된 메소드

protected Awake ( ) : void
리턴 void

CalculatePath() 공개 메소드

public CalculatePath ( ExtVehicleType vehicleType, uint unit, bool skipQueue ) : bool
vehicleType ExtVehicleType
unit uint
skipQueue bool
리턴 bool

CanLanesConnect() 보호된 메소드

protected CanLanesConnect ( uint laneId1, uint laneId2 ) : bool
laneId1 uint
laneId2 uint
리턴 bool

CanUseLane() 보호된 메소드

protected CanUseLane ( bool debug, ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo ) : bool
debug bool
segmentId ushort
laneIndex uint
laneId uint
laneInfo NetInfo
리턴 bool

GetLaneSpeedLimit() 보호된 메소드

protected GetLaneSpeedLimit ( ushort segmentId, uint laneIndex, uint laneId, NetInfo lane ) : float
segmentId ushort
laneIndex uint
laneId uint
lane NetInfo
리턴 float

IsLaneArrowChangerEnabled() 보호된 메소드

protected IsLaneArrowChangerEnabled ( ) : bool
리턴 bool

OnDestroy() 보호된 메소드

protected OnDestroy ( ) : void
리턴 void

PathFindImplementation() 보호된 메소드

protected PathFindImplementation ( uint unit, PathUnit &data ) : void
unit uint
data PathUnit
리턴 void

프로퍼티 상세

IsMasterPathFind 공개적으로 프로퍼티

public bool IsMasterPathFind
리턴 bool

SYNC_TIMEOUT 공개적으로 정적으로 프로퍼티

public static int SYNC_TIMEOUT
리턴 int

_failedPathFinds 공개적으로 프로퍼티

public uint _failedPathFinds
리턴 uint

_succeededPathFinds 공개적으로 프로퍼티

public uint _succeededPathFinds
리턴 uint