|
ClassicCityBuilderKit 1.9.4
|
finds the optimal workplace for any given worker and provide it with a path to work and supply if necessary
Public Member Functions | |
| WorkerPath | GetWorkerPath (IBuilding building, Vector2Int? currentPoint, Worker worker, ItemStorage storage, float maxDistance, PathType pathType, object pathTag) |
| attempts to find a worker path for a worker | |
| WorkerPathQuery | GetWorkerPathQuery (IBuilding building, Vector2Int? currentPoint, Worker worker, ItemStorage storage, float maxDistance, PathType pathType, object pathTag) |
| attempts to find a worker path for a worker | |
| WorkerPath CityBuilderCore.IWorkplaceFinder.GetWorkerPath | ( | IBuilding | building, |
| Vector2Int? | currentPoint, | ||
| Worker | worker, | ||
| ItemStorage | storage, | ||
| float | maxDistance, | ||
| PathType | pathType, | ||
| object | pathTag ) |
attempts to find a worker path for a worker
| building | the structure the worker hails from |
| currentPoint | the current position of the worker |
| worker | the type of worker(mason, carpenter, ...) |
| storage | the storage the worker has available to carry supply to its workplace |
| maxDistance | maximum distance to workplace |
| pathType | the type of pathing the worker uses to get around |
| pathTag | additional parameter for pathfinding |
Implemented in CityBuilderCore.DefaultPopulationManager.
| WorkerPathQuery CityBuilderCore.IWorkplaceFinder.GetWorkerPathQuery | ( | IBuilding | building, |
| Vector2Int? | currentPoint, | ||
| Worker | worker, | ||
| ItemStorage | storage, | ||
| float | maxDistance, | ||
| PathType | pathType, | ||
| object | pathTag ) |
attempts to find a worker path for a worker
| building | the structure the worker hails from |
| currentPoint | the current position of the worker |
| worker | the type of worker(mason, carpenter, ...) |
| storage | the storage the worker has available to carry supply to its workplace |
| maxDistance | maximum distance to workplace |
| pathType | the type of pathing the worker uses to get around |
| pathTag | additional parameter for pathfinding |
Implemented in CityBuilderCore.DefaultPopulationManager.