ClassicCityBuilderKit 1.8.8
|
building component that uses workers, needs to call finish on the worker when done
Public Member Functions | |
float | GetWorkerNeed (Worker worker) |
how much the user needs a worker, makes sure users who already have a worker on site have lower priority | |
ItemQuantity | GetItemsNeeded (Worker worker) |
gets the items a worker has to bring if any | |
void | ReportAssigned (WorkerWalker walker) |
worker has been assigned to the user and will start walking there | |
Vector3[] | ReportArrived (WorkerWalker walker) |
worker has arrived at the user and receives his path into the user(optional) | |
void | ReportInside (WorkerWalker walker) |
if a path inside was returned on arrival the worker will report inside after following that path | |
IEnumerable< Worker > | GetAssigned () |
gets which workers are assigned but have not arrived at the user does not contain empty entries like queued and working | |
IEnumerable< Worker > | GetQueued () |
gets the queue slots in its entire length, null for unfilled slots | |
IEnumerable< Worker > | GetWorking () |
gets the worker slots in its entire length, null for unfilled slots | |
Additional Inherited Members | |
Properties inherited from CityBuilderCore.IBuildingTrait< IWorkerUser > | |
BuildingComponentReference< T > | Reference [get, set] |
reference to the building trait, use when the building might be replaced and when the reference has to be saved | |
IEnumerable< Worker > CityBuilderCore.IWorkerUser.GetAssigned | ( | ) |
gets which workers are assigned but have not arrived at the user
does not contain empty entries like queued and working
Implemented in CityBuilderCore.MonumentSiteComponent, and CityBuilderCore.WorkerUserComponent.
ItemQuantity CityBuilderCore.IWorkerUser.GetItemsNeeded | ( | Worker | worker | ) |
gets the items a worker has to bring if any
worker |
Implemented in CityBuilderCore.MonumentSiteComponent, and CityBuilderCore.WorkerUserComponent.
IEnumerable< Worker > CityBuilderCore.IWorkerUser.GetQueued | ( | ) |
gets the queue slots in its entire length, null for unfilled slots
Implemented in CityBuilderCore.MonumentSiteComponent, and CityBuilderCore.WorkerUserComponent.
float CityBuilderCore.IWorkerUser.GetWorkerNeed | ( | Worker | worker | ) |
how much the user needs a worker, makes sure users who already have a worker on site have lower priority
worker |
Implemented in CityBuilderCore.MonumentSiteComponent, and CityBuilderCore.WorkerUserComponent.
IEnumerable< Worker > CityBuilderCore.IWorkerUser.GetWorking | ( | ) |
gets the worker slots in its entire length, null for unfilled slots
Implemented in CityBuilderCore.MonumentSiteComponent, and CityBuilderCore.WorkerUserComponent.
Vector3[] CityBuilderCore.IWorkerUser.ReportArrived | ( | WorkerWalker | walker | ) |
worker has arrived at the user and receives his path into the user(optional)
walker |
Implemented in CityBuilderCore.MonumentSiteComponent, and CityBuilderCore.WorkerUserComponent.
void CityBuilderCore.IWorkerUser.ReportAssigned | ( | WorkerWalker | walker | ) |
worker has been assigned to the user and will start walking there
walker |
Implemented in CityBuilderCore.MonumentSiteComponent, and CityBuilderCore.WorkerUserComponent.
void CityBuilderCore.IWorkerUser.ReportInside | ( | WorkerWalker | walker | ) |
if a path inside was returned on arrival the worker will report inside after following that path
walker |
Implemented in CityBuilderCore.MonumentSiteComponent, and CityBuilderCore.WorkerUserComponent.