C# Класс TrafficManager.Traffic.VehicleRestrictionsManager

Показать файл Открыть проект

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

Метод Описание
AddAllowedType ( ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo, ExtVehicleType vehicleType ) : void

Adds the given vehicle type to the set of allowed vehicles at the specified lane

IsAllowed ( ExtVehicleType allowedTypes, ExtVehicleType vehicleType ) : bool
IsBicycleAllowed ( ExtVehicleType allowedTypes ) : bool
IsBusAllowed ( ExtVehicleType allowedTypes ) : bool
IsCargoTrainAllowed ( ExtVehicleType allowedTypes ) : bool
IsCargoTruckAllowed ( ExtVehicleType allowedTypes ) : bool
IsEmergencyAllowed ( ExtVehicleType allowedTypes ) : bool
IsPassengerCarAllowed ( ExtVehicleType allowedTypes ) : bool
IsPassengerTrainAllowed ( ExtVehicleType allowedTypes ) : bool
IsRailLane ( NetInfo laneInfo ) : bool
IsRailVehicleAllowed ( ExtVehicleType allowedTypes ) : bool
IsRoadLane ( NetInfo laneInfo ) : bool
IsRoadVehicleAllowed ( ExtVehicleType allowedTypes ) : bool
IsServiceAllowed ( ExtVehicleType allowedTypes ) : bool
IsTaxiAllowed ( ExtVehicleType allowedTypes ) : bool
IsTramAllowed ( ExtVehicleType allowedTypes ) : bool
RemoveAllowedType ( ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo, ExtVehicleType vehicleType ) : void

Removes the given vehicle type from the set of allowed vehicles at the specified lane

ToggleAllowedType ( ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo, ExtVehicleType vehicleType, bool add ) : void

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

Метод Описание
GetAllowedVehicleTypes ( ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo ) : ExtVehicleType

Determines the allowed vehicle types for the given segment and lane.

GetAllowedVehicleTypes ( ushort segmentId, ushort nodeId ) : ExtVehicleType

Determines the allowed vehicle types that may approach the given node from the given segment.

GetAllowedVehicleTypesAsSet ( ushort segmentId, ushort nodeId ) : HashSet

Determines the allowed vehicle types that may approach the given node from the given segment.

SetAllowedVehicleTypes ( ushort segmentId, uint laneIndex, uint laneId, ExtVehicleType allowedTypes ) : bool

Sets the allowed vehicle types for the given segment and lane.

VehicleRestrictionsManager ( ) : ColossalFramework

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

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

Adds the given vehicle type to the set of allowed vehicles at the specified lane
public static AddAllowedType ( ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo, ExtVehicleType vehicleType ) : void
segmentId ushort
laneIndex uint
laneId uint
laneInfo NetInfo
vehicleType ExtVehicleType
Результат void

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

public static IsAllowed ( ExtVehicleType allowedTypes, ExtVehicleType vehicleType ) : bool
allowedTypes ExtVehicleType
vehicleType ExtVehicleType
Результат bool

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

public static IsBicycleAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

public static IsBusAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

public static IsCargoTrainAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

public static IsCargoTruckAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

public static IsEmergencyAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

public static IsPassengerCarAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

public static IsPassengerTrainAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

public static IsRailLane ( NetInfo laneInfo ) : bool
laneInfo NetInfo
Результат bool

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

public static IsRailVehicleAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

public static IsRoadLane ( NetInfo laneInfo ) : bool
laneInfo NetInfo
Результат bool

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

public static IsRoadVehicleAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

public static IsServiceAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

public static IsTaxiAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

public static IsTramAllowed ( ExtVehicleType allowedTypes ) : bool
allowedTypes ExtVehicleType
Результат bool

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

Removes the given vehicle type from the set of allowed vehicles at the specified lane
public static RemoveAllowedType ( ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo, ExtVehicleType vehicleType ) : void
segmentId ushort
laneIndex uint
laneId uint
laneInfo NetInfo
vehicleType ExtVehicleType
Результат void

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

public static ToggleAllowedType ( ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo, ExtVehicleType vehicleType, bool add ) : void
segmentId ushort
laneIndex uint
laneId uint
laneInfo NetInfo
vehicleType ExtVehicleType
add bool
Результат void