ClassicCityBuilderKit 1.9.1
|
makes walker go to point> work> wait> work and then places an item on the ground
when gathering a tree the first work fells the tree and removes it from the primary structure
the wait time is spent waiting for the tree to fall
working the second duration represents the walker making the falling ready for pickup
Classes | |
class | TownHarvestTaskData |
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 bool | ProgressTask (TownWalker walker, string key) |
override string | GetDescription () |
override string | GetDebugText () |
![]() | |
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 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 | |
TownItemTask | ItemTask |
float | Distance |
string | PrimaryStructureKey |
string | SecondaryStructureKey |
float | PrimaryDuration |
float | WaitDuration |
float | SecondaryDuration |
string | PrimaryAnimation |
string | SecondaryAnimation |
![]() | |
TownJob | Job |
Sprite | Icon |
Transform | Visual |
GameObject | Tool |
UnityEvent< string > | MessageReceived |
MessageEvent[] | MessageEvents |
![]() | |
string | Key |
Protected Member Functions | |
override string | saveExtras () |
override void | loadExtras (string json) |
![]() | |
virtual void | Awake () |
virtual void | Update () |
virtual void | OnDestroy () |
Properties | |
override IEnumerable< TownWalker > | Walkers [get] |
![]() | |
Guid | Id = Guid.NewGuid() [get] |
virtual IEnumerable< TownWalker > | Walkers [get] |
Vector2Int | Point [get] |
![]() |
Additional Inherited Members | |
![]() | |
bool | _isTerminated |
bool | _isSuspended |
|
inlinevirtual |
Reimplemented from CityBuilderTown.TownTask.
|
inlinevirtual |
Reimplemented from CityBuilderTown.TownTask.
|
virtual |
Reimplemented from CityBuilderTown.TownTask.
|
inlineprotectedvirtual |
Reimplemented from CityBuilderTown.TownTask.
|
inlinevirtual |
Reimplemented from CityBuilderTown.TownTask.
|
inlineprotectedvirtual |
Reimplemented from CityBuilderTown.TownTask.