|
ClassicCityBuilderKit 1.9.4
|
common interface for objects that handle grid links
made for convenience so road and map linking is interchangable
Public Member Functions | |
| void | RegisterLink (IGridLink link, object tag) |
| adds a link to the linker | |
| void | DeregisterLink (IGridLink link, object tag) |
| removes a link from the linker | |
| IEnumerable< IGridLink > | GetLinks (Vector2Int start, object tag) |
| retrieves all links starting at a specific point | |
| IGridLink | GetLink (Vector2Int start, Vector2Int end, object tag) |
| retrieves a link connecting two specific points if one exists | |
| void CityBuilderCore.IGridLinker.DeregisterLink | ( | IGridLink | link, |
| object | tag ) |
removes a link from the linker
| link | the link to be removed |
| tag | additional information, for example the Road when the link should be removed to a specific road network |
Implemented in CityBuilderCore.RoadManagerBase, CityBuilderCore.RoadManagerBaseMulti, and CityBuilderCore.StructurePaths.
| IGridLink CityBuilderCore.IGridLinker.GetLink | ( | Vector2Int | start, |
| Vector2Int | end, | ||
| object | tag ) |
retrieves a link connecting two specific points if one exists
| start | start point of the potential link |
| end | end point of the potential link |
| tag | additional parameter |
Implemented in CityBuilderCore.RoadManagerBase, CityBuilderCore.RoadManagerBaseMulti, and CityBuilderCore.StructurePaths.
| IEnumerable< IGridLink > CityBuilderCore.IGridLinker.GetLinks | ( | Vector2Int | start, |
| object | tag ) |
retrieves all links starting at a specific point
| start | the point at which to look for lniks |
| tag | additional parameter |
Implemented in CityBuilderCore.RoadManagerBase, CityBuilderCore.RoadManagerBaseMulti, and CityBuilderCore.StructurePaths.
| void CityBuilderCore.IGridLinker.RegisterLink | ( | IGridLink | link, |
| object | tag ) |
adds a link to the linker
| link | the link to be added |
| tag | additional information, for example the Road when the link should be added to a specific road network |
Implemented in CityBuilderCore.RoadManagerBase, CityBuilderCore.RoadManagerBaseMulti, and CityBuilderCore.StructurePaths.