ClassicCityBuilderKit 1.8.8
|
makes a walker go to the market the task stands on and pick up items
the walker then roams the roads connected to the market filling up their stores
afterwards the walker walks back to the market and returns the remaining items
the items carried by the walker are reserved in the market to avoid the market getting filled while the walker is out
Classes | |
class | TownBuildTaskData |
Public Member Functions | |
override bool | CanStartTask (TownWalker walker) |
override WalkerAction[] | StartTask (TownWalker walker) |
override void | ContinueTask (TownWalker walker) |
override void | FinishTask (TownWalker walker, ProcessState process) |
override string | GetDescription () |
override string | GetDebugText () |
Public Member Functions inherited from CityBuilderTown.TownTask | |
WalkerAction[] | StartTask (TownWalker walker) |
void | ContinueTask (TownWalker walker) |
void | FinishTask (TownWalker walker, ProcessState process) |
virtual void | Terminate () |
virtual void | SignalTask (TownWalker walker, string key) |
virtual bool | ProgressTask (TownWalker walker, string key) |
virtual void | SuspendTask () |
virtual void | ResumeTask () |
virtual void | OnMessages (string e) |
use when a single string has to be split into several messages by default the parameter is split by spaces | |
virtual void | OnMessage (string e) |
puts a message into the characters messaging pipeline | |
TownTaskData | SaveData () |
void | LoadData (TownTaskData data) |
Public Attributes | |
int | Memory = 64 |
int | Range = 16 |
int | MaxQuantity = 10 |
float | CooldownDuration |
Public Attributes inherited from CityBuilderTown.TownTask | |
TownJob | Job |
Sprite | Icon |
Transform | Visual |
GameObject | Tool |
UnityEvent< string > | MessageReceived |
MessageEvent[] | MessageEvents |
Public Attributes inherited from CityBuilderCore.KeyedBehaviour | |
string | Key |
Protected Member Functions | |
override void | Update () |
override string | saveExtras () |
override void | loadExtras (string json) |
Protected Member Functions inherited from CityBuilderTown.TownTask | |
virtual void | Awake () |
virtual void | OnDestroy () |
Properties | |
override IEnumerable< TownWalker > | Walkers [get] |
TownMarketComponent | Market [get] |
Properties inherited from CityBuilderTown.TownTask | |
Guid | Id = Guid.NewGuid() [get] |
virtual IEnumerable< TownWalker > | Walkers [get] |
Vector2Int | Point [get] |
Properties inherited from CityBuilderCore.IKeyed |
Additional Inherited Members | |
Protected Attributes inherited from CityBuilderTown.TownTask | |
bool | _isTerminated |
bool | _isSuspended |
|
inlinevirtual |
Reimplemented from CityBuilderTown.TownTask.
|
virtual |
Reimplemented from CityBuilderTown.TownTask.
|
virtual |
Reimplemented from CityBuilderTown.TownTask.
|
inlineprotectedvirtual |
Reimplemented from CityBuilderTown.TownTask.
|
inlineprotectedvirtual |
Reimplemented from CityBuilderTown.TownTask.
|
inlineprotectedvirtual |
Reimplemented from CityBuilderTown.TownTask.