ClassicCityBuilderKit 1.8.8
|
calculates the best path for getting a needed item
Public Member Functions | |
BuildingComponentPath< IItemGiver > | GetGiverPath (IBuilding building, Vector2Int? currentPoint, ItemQuantity items, float maxDistance, PathType pathType, object pathTag=null) |
attempts to find an IItemGiver and a path to it for a needed item | |
BuildingComponentPathQuery< IItemGiver > | GetGiverPathQuery (IBuilding building, Vector2Int? currentPoint, ItemQuantity items, float maxDistance, PathType pathType, object pathTag=null) |
BuildingComponentPath< IItemGiver > CityBuilderCore.IGiverPathfinder.GetGiverPath | ( | IBuilding | building, |
Vector2Int? | currentPoint, | ||
ItemQuantity | items, | ||
float | maxDistance, | ||
PathType | pathType, | ||
object | pathTag = null ) |
attempts to find an IItemGiver and a path to it for a needed item
building | home building of the walker if any |
currentPoint | current position of the walker(if not home) |
items | items that are needed |
maxDistance | maximum distance from walker to giver |
pathType | defines the type of pathing to use |
pathTag | additional pathing parameter |
Implemented in CityBuilderCore.DefaultItemManager.