Skip to main content

FB2CityGraphManager

Overview

  • Manages the city zone/path graph.

Metadata

FieldValue
Kindsystem
EnvironmentB2 - Simulation
Categorysystems
ExtendsFB2ManagerBase
Requirerequire('Systems.B2CityGraphManager')

Properties (2)

NameTypeDescription
CityGraphtable<string, FB2CityGraph>
CurrentCitystring

Functions (52)

FunctionParametersReturnsDescription
CalculateLaneOffsetInLaneIndex: integer, InAdvanceDistance: number, InRatio: numbernumber
FillNavigationPathLaneFromRoadInLaneIndex: integer, InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchType, InOutNavigationPathKeyList: FB1CityGraphLaneKey[]boolean
GetCurrentCity-stringReturns Current City.
GetIntersectionByLaneIndexInLaneIndex: integerFB1CityGraphIntersectionReturns Intersection By Lane Index.
GetLaneCategoryInLaneIndex: integerEB1CityGraphCategoryReturns Lane Category.
GetLaneCountInRoadIndex: integerintegerReturns Lane Count.
GetLaneFlagsInLaneIndex: integerEB1CityGraphLaneFlagsReturns Lane Flags.
GetLaneIndexInRoadIndex: integer, InOffset: integerintegerReturns Lane Index.
GetLaneIndexByUIDInLaneUID: stringintegerReturns Lane Index By UID.
GetLaneLengthByIndexInLaneIndex: integernumberReturns Lane Length By Index.
GetLaneLengthByLaneInLane: FB1CityGraphLanenumberReturns Lane Length By Lane.
GetLaneStateInLaneIndex: integerEB1CityGraphLaneStateReturns Lane State.
GetLaneStateByRoadIndexInRoadIndex: integer, InOffset: integerEB1CityGraphLaneStateReturns Lane State By Road Index.
GetLaneUIDByIndexInLaneIndex: integerstringReturns Lane UIDBy Index.
GetNodeIndexByUIDInNodUID: stringintegerReturns Node Index By UID.
GetNodeUIDByIndexInNodeIndex: integerstringReturns Node UIDBy Index.
GetRoadBlockIdInRoadIndex: integerintegerReturns Road Block Id.
GetRoadCategoryInRoadIndex: integerEB1CityGraphCategoryReturns Road Category.
GetRoadIndexInLaneIndex: integerintegerReturns Road Index.
GetRoadIndexByUIDInRoadUID: stringintegerReturns Road Index By UID.
GetRoadLinkTypeRoadIndex: integer, OtherRoadIndex: integerEB1CityGraphRoadLinkTypeReturns Road Link Type.
GetRoadUIDByIndexInRoadIndex: integerstringReturns Road UIDBy Index.
GetRoadWidthInRoadIndex: integernumberReturns Road Width.
GetType-EB2ManagerTypeReturns Type.
InterpolateLaneInLaneIndex: integer, AdvanceDistance: number, InOffset: number, OutTransform: FTransform-
InterpolateLaneWidthInLaneIndex: integer, InAdvanceDistance: number, OutResult: numberboolean
IsAvailableInCity: stringbooleanReturns whether Available.
IsPeriodicInRoadIndex: integerbooleanReturns whether Periodic.
QueryAccessibleInLaneIndex: integer, InNextRoadIndex: integer, InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchType, InNextLaneIndex: integerboolean
QueryBlockIdInPosition: FVector, InRange: FVectorinteger
QueryIntermediateLaneIndexInLaneIndex: integer, InNextLaneIndex: integer, OutLaneIndex: integerboolean
QueryLaneDirectionYawInLaneIndex: integer, OutYaw: numberboolean
QueryLaneIndicesWithinRadiusInPosition: FVector, InRadius: number, InCategory: EB1CityGraphCategory, OutLaneIndices: integer[]boolean
QueryLaneLinkInLaneIndex: integer, InNextLaneIndex: integer, InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchTypeEB1CityGraphLaneLinkQueryFlag
QueryLanePointInLaneIndex: integer, InAdvancedDistance: number, InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchType, OutPoint: FB1CityGraphDetailPointboolean
QueryLanePointIndexInLaneIndex: integer, InAdvancedDistance: number, OutPointIndex: integer, OutAlpha: numberboolean
QueryLinkedLanesInLaneIndex: integer, InType: EB1CityGraphLaneLinkType, InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchType, OutLinkedLanes: integer[]boolean
QueryNearCandidatePointsInQuery: FB1CityGraphPointQuery, InOriginalNearestPoint: FVector, OutCandidatePoints: FVector[]boolean
QueryNearestCityGraphDetailPointInQuery: FB1CityGraphPointQuery, OutPoint: FB1CityGraphDetailPointboolean
QueryNearestCityGraphPointInQuery: FB1CityGraphPointQuery, OutPoint: FB1CityGraphPointboolean
QueryNextLaneInRoadIndex: integer, InNextKeyIndex: integer, InNavigationPath: FB1CityGraphPath, InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchType, OutNextLaneIndex: integerboolean
QueryNextLaneIndexForUpcomingTurnsInRoadIndex: integer, InNextKeyIndex: integer, InNavigationPathKeyList: FB1CityGraphLaneKey[], InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchType, OutNextLaneIndex: integerboolean
QueryOutgoingAfterLaneIndicesInRoadIndex: integer, InNextRoadIndex: integer, InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchType, OutLaneIndices: integer[]boolean
QueryOutgoingLaneIndicesInRoadIndex: integer, InNextRoadIndex: integer, InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchType, OutLaneIndices: integer[]boolean
QueryPathInQuery: FB1CityGraphPathQuery, OutPath: FB1CityGraphPathboolean
QueryPathByPointsInQuery: FB1CityGraphPathQuery, InFrom: FB1CityGraphPoint, InTo: FB1CityGraphPoint, OutPath: FB1CityGraphPathboolean
QueryPathKeysInQuery: FB1CityGraphPathQuery, OutKeys: FB1CityGraphLaneKey[]boolean
QueryProjectedLanePointInLaneIndex: integer, InTargetLaneIndex: integer, InAdvancedDistance: number, InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchType, OutPoint: FB1CityGraphDetailPointboolean
Reset--
SetLanePointsFlagInLanePointIndices: integer[], InFlag: integer-Sets Lane Points Flag.
SetLaneStateInLaneIndex: integer, InState: EB1CityGraphLaneState-Sets Lane State.
SetRoadStateInRoadIndex: integer, InState: EB1CityGraphLaneState-Sets Road State.

Override points (4)

Implement these in Lua as FB2CityGraphManager.Override_Name = function(...) end.

FunctionParametersReturnsDescription
Override_CalculateLaneOffsetInLaneIndex: integer, InAdvanceDistance: number, InRatio: numbernumber
Override_QueryAccessibleInLaneIndex: integer, InNextRoadIndex: integer, InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchType, InNextLaneIndex: integerboolean
Override_QueryLaneLinkInLaneIndex: integer, InNextLaneIndex: integer, InCategory: EB1CityGraphCategory, InMatchType: EB1CityGraphCategoryMatchTypeEB1CityGraphLaneLinkQueryFlag
Override_Reset--