C# Class SimShift.MapTool.Ets2Item

Afficher le fichier Open project: nlhans/SimShift Class Usage Examples

Méthodes publiques

Свойство Type Description
Origin int

Méthodes publiques

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

Méthode Description
AddNodeUID ( ulong nodeUid ) : bool

Method Details

Apply() public méthode

public Apply ( Ets2Node node ) : bool
node Ets2Node
Résultat bool

Ets2Item() public méthode

public Ets2Item ( ulong uid, Ets2Sector sector, int offset ) : System
uid ulong
sector Ets2Sector
offset int
Résultat System

GenerateRoadCurve() public méthode

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
Résultat IEnumerable

GenerateRoadPolygon() public méthode

public GenerateRoadPolygon ( int steps ) : void
steps int
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

Origin public_oe property

public int Origin
Résultat int