C# Class SimShift.MapTool.Ets2Mapper

显示文件 Open project: nlhans/SimShift Class Usage Examples

Public Properties

Property Type Description
Cities Ets2Item>.Dictionary
Companies Dictionary,Ets2Item>
Items Ets2Item>.ConcurrentDictionary
Nodes Ets2Node>.ConcurrentDictionary

Private Properties

Property Type Description
BuildNavigationCache void
LoadLUT void

Public Methods

Method Description
Ets2Mapper ( string sectorFolder, string prefabFolder, string lut ) : System
Find ( Ets2Node node, ulong item, bool isBackward ) : void
FindClosestRoadPrefab ( PointF location ) : Ets2Item
LookupCityID ( ulong id ) : string
LookupPrefab ( int prefabId ) : Ets2Prefab
LookupRoadLookID ( uint lookId ) : Ets2RoadLook
NavigateTo ( PointF from, PointF to ) : Ets2NavigationRoute

Navigate from X/Y to X/Y coordinates

NavigateTo ( PointF from, string city ) : Ets2NavigationRoute

Navigate to city from X/Y point

NavigateTo ( PointF from, string city, string company ) : Ets2NavigationRoute

Navigate to city company from X/Y point

Parse ( ) : void

Private Methods

Method Description
BuildNavigationCache ( ) : void
LoadLUT ( ) : void

Method Details

Ets2Mapper() public method

public Ets2Mapper ( string sectorFolder, string prefabFolder, string lut ) : System
sectorFolder string
prefabFolder string
lut string
return System

Find() public method

public Find ( Ets2Node node, ulong item, bool isBackward ) : void
node Ets2Node
item ulong
isBackward bool
return void

FindClosestRoadPrefab() public method

public FindClosestRoadPrefab ( PointF location ) : Ets2Item
location System.Drawing.PointF
return Ets2Item

LookupCityID() public method

public LookupCityID ( ulong id ) : string
id ulong
return string

LookupPrefab() public method

public LookupPrefab ( int prefabId ) : Ets2Prefab
prefabId int
return Ets2Prefab

LookupRoadLookID() public method

public LookupRoadLookID ( uint lookId ) : Ets2RoadLook
lookId uint
return Ets2RoadLook

NavigateTo() public method

Navigate from X/Y to X/Y coordinates
public NavigateTo ( PointF from, PointF to ) : Ets2NavigationRoute
from System.Drawing.PointF
to System.Drawing.PointF
return Ets2NavigationRoute

NavigateTo() public method

Navigate to city from X/Y point
public NavigateTo ( PointF from, string city ) : Ets2NavigationRoute
from System.Drawing.PointF
city string
return Ets2NavigationRoute

NavigateTo() public method

Navigate to city company from X/Y point
public NavigateTo ( PointF from, string city, string company ) : Ets2NavigationRoute
from System.Drawing.PointF
city string
company string
return Ets2NavigationRoute

Parse() public method

public Parse ( ) : void
return void

Property Details

Cities public_oe property

public Dictionary Cities
return Ets2Item>.Dictionary

Companies public_oe property

public Dictionary,Ets2Item> Companies
return Dictionary,Ets2Item>

Items public_oe property

public ConcurrentDictionary Items
return Ets2Item>.ConcurrentDictionary

Nodes public_oe property

public ConcurrentDictionary Nodes
return Ets2Node>.ConcurrentDictionary