C# Class Transit.Addon.RoadExtensions.Roads.Common.RoadHelper

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

Méthodes publiques

Méthode Description
AddLeftWallLights ( this props, float pavementWidth ) : void
AddProps ( this props, ICollection propsToAdd ) : void
AddRightWallLights ( this props, float pavementWidth ) : void
GetLeftRoadShoulder ( this info ) : NetInfo.Lane
GetMedianLane ( this info ) : NetInfo.Lane
GetRightRoadShoulder ( this info ) : NetInfo.Lane
HandleAsymComplementarySegmentsFlags ( NetInfo fSegment, NetInfo bSegment, LanesLayoutStyle lanesLayoutStyle ) : void
HandleAsymSegmentFlags ( this segment, LanesLayoutStyle asymLaneType ) : void
RemoveProps ( this props ) : void
ReplacePropInfo ( this props, PropInfo>.KeyValuePair replacementPair ) : void

Replaces a prop whose name is contained in the key with the propinfo in the value.

ReplaceProps ( this info, PropInfo newPropInfo, PropInfo oldPropInfo ) : void
SetRoadLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : NetInfo
SetupNewSpeedLimitProps ( this info, int newSpeedLimit, int oldSpeedLimit ) : void
SetupPedestrianLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : IEnumerable
TrimAboveGroundProps ( this info, NetInfoVersion version, bool removeRightStreetLights = false, bool removeLeftStreetLights = false ) : void
TrimArrowsProps ( this info ) : void

Private Methods

Méthode Description
SetupMedianLane ( this lane, LanesConfiguration config, NetInfoVersion version ) : NetInfo.Lane
SetupParkingLanes ( this rdInfo ) : IEnumerable
SetupTurningLaneProps ( NetInfo lane ) : void
SetupVehicleLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : IEnumerable

Method Details

AddLeftWallLights() public static méthode

public static AddLeftWallLights ( this props, float pavementWidth ) : void
props this
pavementWidth float
Résultat void

AddProps() public static méthode

public static AddProps ( this props, ICollection propsToAdd ) : void
props this
propsToAdd ICollection
Résultat void

AddRightWallLights() public static méthode

public static AddRightWallLights ( this props, float pavementWidth ) : void
props this
pavementWidth float
Résultat void

GetLeftRoadShoulder() public static méthode

public static GetLeftRoadShoulder ( this info ) : NetInfo.Lane
info this
Résultat NetInfo.Lane

GetMedianLane() public static méthode

public static GetMedianLane ( this info ) : NetInfo.Lane
info this
Résultat NetInfo.Lane

GetRightRoadShoulder() public static méthode

public static GetRightRoadShoulder ( this info ) : NetInfo.Lane
info this
Résultat NetInfo.Lane

HandleAsymComplementarySegmentsFlags() public static méthode

public static HandleAsymComplementarySegmentsFlags ( NetInfo fSegment, NetInfo bSegment, LanesLayoutStyle lanesLayoutStyle ) : void
fSegment NetInfo
bSegment NetInfo
lanesLayoutStyle LanesLayoutStyle
Résultat void

HandleAsymSegmentFlags() public static méthode

public static HandleAsymSegmentFlags ( this segment, LanesLayoutStyle asymLaneType ) : void
segment this
asymLaneType LanesLayoutStyle
Résultat void

RemoveProps() public static méthode

public static RemoveProps ( this props ) : void
props this
Résultat void

ReplacePropInfo() public static méthode

Replaces a prop whose name is contained in the key with the propinfo in the value.
public static ReplacePropInfo ( this props, PropInfo>.KeyValuePair replacementPair ) : void
props this
replacementPair PropInfo>.KeyValuePair
Résultat void

ReplaceProps() public static méthode

public static ReplaceProps ( this info, PropInfo newPropInfo, PropInfo oldPropInfo ) : void
info this
newPropInfo PropInfo
oldPropInfo PropInfo
Résultat void

SetRoadLanes() public static méthode

public static SetRoadLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : NetInfo
rdInfo this
version NetInfoVersion
config LanesConfiguration
Résultat NetInfo

SetupNewSpeedLimitProps() public static méthode

public static SetupNewSpeedLimitProps ( this info, int newSpeedLimit, int oldSpeedLimit ) : void
info this
newSpeedLimit int
oldSpeedLimit int
Résultat void

SetupPedestrianLanes() public static méthode

public static SetupPedestrianLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : IEnumerable
rdInfo this
version NetInfoVersion
config LanesConfiguration
Résultat IEnumerable

TrimAboveGroundProps() public static méthode

public static TrimAboveGroundProps ( this info, NetInfoVersion version, bool removeRightStreetLights = false, bool removeLeftStreetLights = false ) : void
info this
version NetInfoVersion
removeRightStreetLights bool
removeLeftStreetLights bool
Résultat void

TrimArrowsProps() public static méthode

public static TrimArrowsProps ( this info ) : void
info this
Résultat void