C# Класс TrafficManager.CustomPathManager

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

Открытые свойства

Свойство Тип Описание
PathFindInstance CustomPathFind

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

Метод Описание
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPos, PathUnit endPos, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength ) : bool
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength ) : bool
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue ) : bool
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue, ItemClass vehicleService ) : bool
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, PathUnit vehiclePosition, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue ) : bool
CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, PathUnit vehiclePosition, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue, ItemClass vehicleService ) : bool
GetLaneID ( PathUnit pathPos ) : uint
UpdateWithPathManagerValues ( PathManager stockPathManager ) : void

Защищенные методы

Метод Описание
Awake ( ) : void

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

Метод Описание
assignPathProperties ( uint unit, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, PathUnit vehiclePosition, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, byte simulationFlags ) : void
createSimulationFlag ( bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, ItemClass vehicleService ) : byte
findShortestPath ( uint unit, bool skipQueue ) : bool

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

Awake() защищенный Метод

protected Awake ( ) : void
Результат void

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

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPos, PathUnit endPos, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPos PathUnit
endPos PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
Результат bool

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

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPosA PathUnit
startPosB PathUnit
endPosA PathUnit
endPosB PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
Результат bool

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

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPosA PathUnit
startPosB PathUnit
endPosA PathUnit
endPosB PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
isHeavyVehicle bool
ignoreBlocked bool
stablePath bool
skipQueue bool
Результат bool

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

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue, ItemClass vehicleService ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPosA PathUnit
startPosB PathUnit
endPosA PathUnit
endPosB PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
isHeavyVehicle bool
ignoreBlocked bool
stablePath bool
skipQueue bool
vehicleService ItemClass
Результат bool

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

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, PathUnit vehiclePosition, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPosA PathUnit
startPosB PathUnit
endPosA PathUnit
endPosB PathUnit
vehiclePosition PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
isHeavyVehicle bool
ignoreBlocked bool
stablePath bool
skipQueue bool
Результат bool

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

public CreatePath ( uint &unit, Randomizer &randomizer, uint buildIndex, PathUnit startPosA, PathUnit startPosB, PathUnit endPosA, PathUnit endPosB, PathUnit vehiclePosition, NetInfo laneTypes, VehicleInfo vehicleTypes, float maxLength, bool isHeavyVehicle, bool ignoreBlocked, bool stablePath, bool skipQueue, ItemClass vehicleService ) : bool
unit uint
randomizer Randomizer
buildIndex uint
startPosA PathUnit
startPosB PathUnit
endPosA PathUnit
endPosB PathUnit
vehiclePosition PathUnit
laneTypes NetInfo
vehicleTypes VehicleInfo
maxLength float
isHeavyVehicle bool
ignoreBlocked bool
stablePath bool
skipQueue bool
vehicleService ItemClass
Результат bool

GetLaneID() публичный статический Метод

public static GetLaneID ( PathUnit pathPos ) : uint
pathPos PathUnit
Результат uint

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

public UpdateWithPathManagerValues ( PathManager stockPathManager ) : void
stockPathManager PathManager
Результат void

Описание свойств

PathFindInstance публичное статическое свойство

public static CustomPathFind,TrafficManager PathFindInstance
Результат CustomPathFind