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

ファイルを表示 Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Public Methods

Method 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

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

public static AddLeftWallLights ( this props, float pavementWidth ) : void
props this
pavementWidth float
return void

AddProps() public static method

public static AddProps ( this props, ICollection propsToAdd ) : void
props this
propsToAdd ICollection
return void

AddRightWallLights() public static method

public static AddRightWallLights ( this props, float pavementWidth ) : void
props this
pavementWidth float
return void

GetLeftRoadShoulder() public static method

public static GetLeftRoadShoulder ( this info ) : NetInfo.Lane
info this
return NetInfo.Lane

GetMedianLane() public static method

public static GetMedianLane ( this info ) : NetInfo.Lane
info this
return NetInfo.Lane

GetRightRoadShoulder() public static method

public static GetRightRoadShoulder ( this info ) : NetInfo.Lane
info this
return NetInfo.Lane

HandleAsymComplementarySegmentsFlags() public static method

public static HandleAsymComplementarySegmentsFlags ( NetInfo fSegment, NetInfo bSegment, LanesLayoutStyle lanesLayoutStyle ) : void
fSegment NetInfo
bSegment NetInfo
lanesLayoutStyle LanesLayoutStyle
return void

HandleAsymSegmentFlags() public static method

public static HandleAsymSegmentFlags ( this segment, LanesLayoutStyle asymLaneType ) : void
segment this
asymLaneType LanesLayoutStyle
return void

RemoveProps() public static method

public static RemoveProps ( this props ) : void
props this
return void

ReplacePropInfo() public static method

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
return void

ReplaceProps() public static method

public static ReplaceProps ( this info, PropInfo newPropInfo, PropInfo oldPropInfo ) : void
info this
newPropInfo PropInfo
oldPropInfo PropInfo
return void

SetRoadLanes() public static method

public static SetRoadLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : NetInfo
rdInfo this
version NetInfoVersion
config LanesConfiguration
return NetInfo

SetupNewSpeedLimitProps() public static method

public static SetupNewSpeedLimitProps ( this info, int newSpeedLimit, int oldSpeedLimit ) : void
info this
newSpeedLimit int
oldSpeedLimit int
return void

SetupPedestrianLanes() public static method

public static SetupPedestrianLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : IEnumerable
rdInfo this
version NetInfoVersion
config LanesConfiguration
return IEnumerable

TrimAboveGroundProps() public static method

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

TrimArrowsProps() public static method

public static TrimArrowsProps ( this info ) : void
info this
return void