C# Class SimShift.MapTool.Ets2Item

Mostrar archivo Open project: nlhans/SimShift Class Usage Examples

Public Properties

Property Type Description
Origin int

Public Methods

Method Description
Apply ( Ets2Node node ) : bool
Ets2Item ( ulong uid, Ets2Sector sector, int offset ) : System
GenerateRoadCurve ( int steps, bool leftlane, int lane ) : IEnumerable

Generate road curves for a specific lane. The curve is generated with [steps] nodes and positioned left or right from the road's middle point. Additionally, each extra lane is shifted 4.5 game units outward.

GenerateRoadPolygon ( int steps ) : void
ToString ( ) : string

Private Methods

Method Description
AddNodeUID ( ulong nodeUid ) : bool

Method Details

Apply() public method

public Apply ( Ets2Node node ) : bool
node Ets2Node
return bool

Ets2Item() public method

public Ets2Item ( ulong uid, Ets2Sector sector, int offset ) : System
uid ulong
sector Ets2Sector
offset int
return System

GenerateRoadCurve() public method

Generate road curves for a specific lane. The curve is generated with [steps] nodes and positioned left or right from the road's middle point. Additionally, each extra lane is shifted 4.5 game units outward.
public GenerateRoadCurve ( int steps, bool leftlane, int lane ) : IEnumerable
steps int
leftlane bool
lane int
return IEnumerable

GenerateRoadPolygon() public method

public GenerateRoadPolygon ( int steps ) : void
steps int
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

Origin public_oe property

public int Origin
return int