C# Class CSL_Traffic.LaneManager

Show file Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Public Methods

Method Description
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

Method Details

AddLaneConnection() public static method

public static AddLaneConnection ( uint laneId, uint connectionId ) : bool
laneId uint
connectionId uint
return bool

CanUseLane() public static method

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

CheckLaneConnection() public static method

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

CreateLane() public static method

public static CreateLane ( uint laneId ) : Lane
laneId uint
return Lane

GetLane() public static method

public static GetLane ( uint laneId ) : Lane
laneId uint
return Lane

GetLaneConnections() public static method

public static GetLaneConnections ( uint laneId ) : uint[]
laneId uint
return uint[]

GetLaneSpeed() public static method

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

GetLaneSpeedRestriction() public static method

public static GetLaneSpeedRestriction ( uint laneId ) : float
laneId uint
return float

GetVehicleRestrictions() public static method

public static GetVehicleRestrictions ( uint laneId ) : ExtendedVehicleType
laneId uint
return ExtendedVehicleType

RemoveLaneConnection() public static method

public static RemoveLaneConnection ( uint laneId, uint connectionId ) : bool
laneId uint
connectionId uint
return bool

SetLaneSpeedRestriction() public static method

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

SetVehicleRestrictions() public static method

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

ToggleVehicleRestriction() public static method

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