C# Класс SimShift.MapTool.Ets2Item

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Origin int

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
AddNodeUID ( ulong nodeUid ) : bool

Описание методов

Apply() публичный Метод

public Apply ( Ets2Node node ) : bool
node Ets2Node
Результат bool

Ets2Item() публичный Метод

public Ets2Item ( ulong uid, Ets2Sector sector, int offset ) : System
uid ulong
sector Ets2Sector
offset int
Результат System

GenerateRoadCurve() публичный Метод

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
Результат IEnumerable

GenerateRoadPolygon() публичный Метод

public GenerateRoadPolygon ( int steps ) : void
steps int
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

Origin публичное свойство

public int Origin
Результат int