Property | Type | Description | |
---|---|---|---|
AvailableSpeedLimits | List |
Method | Description | |
---|---|---|
GetAverageDefaultCustomSpeedLimit ( NetInfo segmentInfo, NetInfo dir = null ) : ushort |
Determines the average default speed limit for a given NetInfo object in terms of discrete speed limit levels. An in-game speed limit of 2.0 (e.g. on highway) is hereby translated into a discrete speed limit value of 100 (km/h).
|
|
GetCustomSpeedLimit ( uint laneId ) : ushort |
Determines the currently set speed limit for the given lane in terms of discrete speed limit levels. An in-game speed limit of 2.0 (e.g. on highway) is hereby translated into a discrete speed limit value of 100 (km/h).
|
|
GetCustomSpeedLimit ( ushort segmentId, NetInfo dir ) : ushort |
Determines the currently set speed limit for the given segment and lane direction in terms of discrete speed limit levels. An in-game speed limit of 2.0 (e.g. on highway) is hereby translated into a discrete speed limit value of 100 (km/h).
|
|
GetDefaultSpeedLimits ( ) : ushort>.Dictionary |
||
GetGameSpeedLimit ( uint laneId ) : float |
Determines the currently set speed limit for the given lane in terms of game (floating point) speed limit levels
|
|
SetSpeedLimit ( ushort segmentId, NetInfo dir, ushort speedLimit ) : bool |
Sets the speed limit of a given segment and lane direction.
|
|
ToCustomSpeedLimit ( float gameSpeedLimit ) : ushort |
Converts a game speed limit to a custom speed limit.
|
|
ToGameSpeedLimit ( ushort customSpeedLimit ) : float |
Converts a custom speed limit to a game speed limit.
|
Method | Description | |
---|---|---|
GetLockFreeGameSpeedLimit ( ushort segmentId, uint laneIndex, uint laneId, NetInfo laneInfo ) : float | ||
SpeedLimitManager ( ) : ColossalFramework |
public static GetAverageDefaultCustomSpeedLimit ( NetInfo segmentInfo, NetInfo dir = null ) : ushort | ||
segmentInfo | NetInfo | |
dir | NetInfo | |
return | ushort |
public static GetCustomSpeedLimit ( uint laneId ) : ushort | ||
laneId | uint | |
return | ushort |
public static GetCustomSpeedLimit ( ushort segmentId, NetInfo dir ) : ushort | ||
segmentId | ushort | |
dir | NetInfo | |
return | ushort |
public static GetDefaultSpeedLimits ( ) : ushort>.Dictionary |
||
return | ushort>.Dictionary |
public static GetGameSpeedLimit ( uint laneId ) : float | ||
laneId | uint | |
return | float |
public static SetSpeedLimit ( ushort segmentId, NetInfo dir, ushort speedLimit ) : bool | ||
segmentId | ushort | |
dir | NetInfo | |
speedLimit | ushort | |
return | bool |
public static ToCustomSpeedLimit ( float gameSpeedLimit ) : ushort | ||
gameSpeedLimit | float | |
return | ushort |
public static ToGameSpeedLimit ( ushort customSpeedLimit ) : float | ||
customSpeedLimit | ushort | |
return | float |