C# Class TrafficManager.CustomPathManager

Inheritance: PathManager
Afficher le fichier Open project: seiggy/Skylines-Traffic-Manager Class Usage Examples

Méthodes publiques

Свойство Type Description
PathFindInstance CustomPathFind

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Awake ( ) : void

Private Methods

Méthode Description
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

Method Details

Awake() protected méthode

protected Awake ( ) : void
Résultat void

CreatePath() public méthode

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
Résultat bool

CreatePath() public méthode

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
Résultat bool

CreatePath() public méthode

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
Résultat bool

CreatePath() public méthode

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
Résultat bool

CreatePath() public méthode

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
Résultat bool

CreatePath() public méthode

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
Résultat bool

GetLaneID() public static méthode

public static GetLaneID ( PathUnit pathPos ) : uint
pathPos PathUnit
Résultat uint

UpdateWithPathManagerValues() public méthode

public UpdateWithPathManagerValues ( PathManager stockPathManager ) : void
stockPathManager PathManager
Résultat void

Property Details

PathFindInstance public_oe static_oe property

public static CustomPathFind,TrafficManager PathFindInstance
Résultat CustomPathFind