C# Class CSL_Traffic.LaneManager

Afficher le fichier Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static AddLaneConnection ( uint laneId, uint connectionId ) : bool
laneId uint
connectionId uint
Résultat bool

CanUseLane() public static méthode

public static CanUseLane ( this laneInfo, ExtendedVehicleType vehicleType, uint laneId ) : bool
laneInfo this
vehicleType ExtendedVehicleType
laneId uint
Résultat bool

CheckLaneConnection() public static méthode

public static CheckLaneConnection ( this laneInfo, ExtendedVehicleType vehicleType, uint from, uint to ) : bool
laneInfo this
vehicleType ExtendedVehicleType
from uint
to uint
Résultat bool

CreateLane() public static méthode

public static CreateLane ( uint laneId ) : Lane
laneId uint
Résultat Lane

GetLane() public static méthode

public static GetLane ( uint laneId ) : Lane
laneId uint
Résultat Lane

GetLaneConnections() public static méthode

public static GetLaneConnections ( uint laneId ) : uint[]
laneId uint
Résultat uint[]

GetLaneSpeed() public static méthode

public static GetLaneSpeed ( uint laneId, NetInfo lane ) : float
laneId uint
lane NetInfo
Résultat float

GetLaneSpeedRestriction() public static méthode

public static GetLaneSpeedRestriction ( uint laneId ) : float
laneId uint
Résultat float

GetVehicleRestrictions() public static méthode

public static GetVehicleRestrictions ( uint laneId ) : ExtendedVehicleType
laneId uint
Résultat ExtendedVehicleType

RemoveLaneConnection() public static méthode

public static RemoveLaneConnection ( uint laneId, uint connectionId ) : bool
laneId uint
connectionId uint
Résultat bool

SetLaneSpeedRestriction() public static méthode

public static SetLaneSpeedRestriction ( uint laneId, int speed ) : void
laneId uint
speed int
Résultat void

SetVehicleRestrictions() public static méthode

public static SetVehicleRestrictions ( uint laneId, ExtendedVehicleType vehicleRestrictions ) : void
laneId uint
vehicleRestrictions ExtendedVehicleType
Résultat void

ToggleVehicleRestriction() public static méthode

public static ToggleVehicleRestriction ( uint laneId, ExtendedVehicleType vehicleType ) : void
laneId uint
vehicleType ExtendedVehicleType
Résultat void