Class WorkAction
When performed, cuts a tree.
Earns Money and Wood immediately.
Assembly: UtilityAIFramework.dll
Syntax
public class WorkAction : UtilityAction, IUtilityAction
Fields
TreeObjectManager
Declaration
public TreeObjectManager TreeObjectManager
Field Value
Methods
InitializeDynamicConsideration()
This shows a way of dynamically adding a consideration and binding / injecting any required dependencies.
Declaration
public override void InitializeDynamicConsideration()
Overrides
OnMove(MoveSystemBase)
Declaration
public override void OnMove(MoveSystemBase moveSystem)
Parameters
Overrides
OnMoveStarted(MoveSystemBase)
Declaration
public override void OnMoveStarted(MoveSystemBase moveSystem)
Parameters
Overrides
Declaration
protected override void OnPerformByDurationCompleted(Agent agent)
Parameters
Type |
Name |
Description |
Agent |
agent |
|
Overrides
Declaration
public override EActionStatus Perform(Agent agent)
Parameters
Type |
Name |
Description |
Agent |
agent |
|
Returns
Overrides
Implements