C# 클래스 CSL_Traffic.LaneManager

파일 보기 프로젝트 열기: Katalyst6/CSL.TransitAddonMod 1 사용 예제들

공개 메소드들

메소드 설명
AddLaneConnection ( uint laneId, uint connectionId ) : bool
CanUseLane ( this laneInfo, ExtendedVehicleType vehicleType, uint laneId ) : bool
CheckLaneConnection ( this laneInfo, ExtendedVehicleType vehicleType, uint from, uint to ) : bool
CreateLane ( uint laneId ) : Lane
GetLane ( uint laneId ) : Lane
GetLaneConnections ( uint laneId ) : uint[]
GetLaneSpeed ( uint laneId, NetInfo lane ) : float
GetLaneSpeedRestriction ( uint laneId ) : float
GetVehicleRestrictions ( uint laneId ) : ExtendedVehicleType
RemoveLaneConnection ( uint laneId, uint connectionId ) : bool
SetLaneSpeedRestriction ( uint laneId, int speed ) : void
SetVehicleRestrictions ( uint laneId, ExtendedVehicleType vehicleRestrictions ) : void
ToggleVehicleRestriction ( uint laneId, ExtendedVehicleType vehicleType ) : void

메소드 상세

AddLaneConnection() 공개 정적인 메소드

public static AddLaneConnection ( uint laneId, uint connectionId ) : bool
laneId uint
connectionId uint
리턴 bool

CanUseLane() 공개 정적인 메소드

public static CanUseLane ( this laneInfo, ExtendedVehicleType vehicleType, uint laneId ) : bool
laneInfo this
vehicleType ExtendedVehicleType
laneId uint
리턴 bool

CheckLaneConnection() 공개 정적인 메소드

public static CheckLaneConnection ( this laneInfo, ExtendedVehicleType vehicleType, uint from, uint to ) : bool
laneInfo this
vehicleType ExtendedVehicleType
from uint
to uint
리턴 bool

CreateLane() 공개 정적인 메소드

public static CreateLane ( uint laneId ) : Lane
laneId uint
리턴 Lane

GetLane() 공개 정적인 메소드

public static GetLane ( uint laneId ) : Lane
laneId uint
리턴 Lane

GetLaneConnections() 공개 정적인 메소드

public static GetLaneConnections ( uint laneId ) : uint[]
laneId uint
리턴 uint[]

GetLaneSpeed() 공개 정적인 메소드

public static GetLaneSpeed ( uint laneId, NetInfo lane ) : float
laneId uint
lane NetInfo
리턴 float

GetLaneSpeedRestriction() 공개 정적인 메소드

public static GetLaneSpeedRestriction ( uint laneId ) : float
laneId uint
리턴 float

GetVehicleRestrictions() 공개 정적인 메소드

public static GetVehicleRestrictions ( uint laneId ) : ExtendedVehicleType
laneId uint
리턴 ExtendedVehicleType

RemoveLaneConnection() 공개 정적인 메소드

public static RemoveLaneConnection ( uint laneId, uint connectionId ) : bool
laneId uint
connectionId uint
리턴 bool

SetLaneSpeedRestriction() 공개 정적인 메소드

public static SetLaneSpeedRestriction ( uint laneId, int speed ) : void
laneId uint
speed int
리턴 void

SetVehicleRestrictions() 공개 정적인 메소드

public static SetVehicleRestrictions ( uint laneId, ExtendedVehicleType vehicleRestrictions ) : void
laneId uint
vehicleRestrictions ExtendedVehicleType
리턴 void

ToggleVehicleRestriction() 공개 정적인 메소드

public static ToggleVehicleRestriction ( uint laneId, ExtendedVehicleType vehicleType ) : void
laneId uint
vehicleType ExtendedVehicleType
리턴 void