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