Skip to content
Naman Tiwari edited this page Aug 13, 2018 · 2 revisions

In order to a add a new Task type implement a new class which extends the Task and define all the required fields.

  • Oreon attribute changes : The health, intelligence, hunger and strength fields define what is the effect of this task on an Oreon's corresponding attribute after it finishes this task.
  • Add the new task type to the AssignedTaskType class.
  • If this task requires a particular building for its completion define it using the buildingType field. The requiredBuildingEntityId is assigned dynamically by the TaskManagementSystem based on this type. For eg: The eat requires the Diner to be constructed in the village.
  • Assign the requiredBlocks and blockResult for this task, if any. For eg : The research task requires blocks defined in its recipe and result in the block defined.
  • Assign the blockToRender field if you wish to render a block relevant to the task above the Oreon's head while it is performing this task.

Contributor Guidelines

Clone this wiki locally