Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
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 |
public static AddAllowedType ( ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo, ExtVehicleType vehicleType ) : void | ||
segmentId | ushort | |
laneIndex | uint | |
laneId | uint | |
laneInfo | NetInfo | |
vehicleType | ExtVehicleType | |
Résultat | void |
public static IsAllowed ( ExtVehicleType allowedTypes, ExtVehicleType vehicleType ) : bool | ||
allowedTypes | ExtVehicleType | |
vehicleType | ExtVehicleType | |
Résultat | bool |
public static IsBicycleAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static IsBusAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static IsCargoTrainAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static IsCargoTruckAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static IsEmergencyAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static IsPassengerCarAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static IsPassengerTrainAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static IsRailLane ( NetInfo laneInfo ) : bool | ||
laneInfo | NetInfo | |
Résultat | bool |
public static IsRailVehicleAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static IsRoadLane ( NetInfo laneInfo ) : bool | ||
laneInfo | NetInfo | |
Résultat | bool |
public static IsRoadVehicleAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static IsServiceAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static IsTaxiAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static IsTramAllowed ( ExtVehicleType allowedTypes ) : bool | ||
allowedTypes | ExtVehicleType | |
Résultat | bool |
public static RemoveAllowedType ( ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo, ExtVehicleType vehicleType ) : void | ||
segmentId | ushort | |
laneIndex | uint | |
laneId | uint | |
laneInfo | NetInfo | |
vehicleType | ExtVehicleType | |
Résultat | void |
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 | |
Résultat | void |