GoapActionAsset
class in Eddie
Description
An abstract class extending ScriptableObject that represents a single action.
You would want to extent and set the action behaviour.
Properties
| Properties | Description |
|---|---|
| actionName | Name for the action. |
| baseCost | Cost of the action. |
| preconditions | Pre-conditions of the action. |
| effects | Effects of the action. |
Methods
public virtual void OnStart(GameObject npc, ActionInstance instance)
Called at the start of the action.
public abstract ActionStatus Perform(GameObject npc, ActionInstance instance)
Update loop of the action.
public virtual void OnEnd(GameObject npc, ActionInstance instance)
Called at the end of the action.