-
Notifications
You must be signed in to change notification settings - Fork 12
Tasks
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
andstrength
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. TherequiredBuildingEntityId
is assigned dynamically by the TaskManagementSystem based on this type. For eg: Theeat
requires the Diner to be constructed in the village. - Assign the
requiredBlocks
andblockResult
for this task, if any. For eg : Theresearch
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.