C# 클래스 TrafficManager.Traffic.VehicleRestrictionsManager

파일 보기 프로젝트 열기: Katalyst6/CSL.TransitAddonMod

공개 메소드들

메소드 설명
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