Abstract class
Extendable
Category: Data
list<RESOURCE_QUANTITY_PAIR>
RESOURCE_COLLECTION_VALUE value
or list of RESOURCE_QUANTITY_PAIR values
boolean
boolean value
false
void initialize(mandateType)
Call after creation of your instance
Name | Type | Description |
---|---|---|
mandateType | MANDATE_TYPE |
void onStartClickCallback(assetRelatedJob)
This is called when you click on the \'start\' button of the mandate in the Mandate Window
Name | Type | Description |
---|---|---|
assetRelatedJob | JOB |
float getDurationInSec()
float getRemainingTime()
RESOURCE_COLLECTION_VALUE getCost()
float getRemainingTimeRatio()
boolean isRequiringBailiff()
COMP_VILLAGER getAssignedVillager()
boolean isEnabled()
boolean isActive()
boolean isDisabled()
void addDelayBeforeEnabled(timeDelay [, disableMandate])
integer_and_unsigned_integer getDelayBeforeEnabledInDays()
float getDelayBeforeEnabledTimeRatio()
float getDelayBeforeEnabled()
boolean isValid()
ON_MANDATE_STATE_CHANGED()
Call this event when you update your mandate. This will update the status string in the UI.