User Tools

Site Tools


api:mandate

MANDATE

Abstract class
Extendable
Category: Data

Properties


AssetMandate

Runtime only, Savegame


Name

Runtime only, Savegame

  • Type: string
  • Expected: string value

Workplace

Runtime only, Savegame

  • Expected: pair of asset ID and component data type

Behavior

Runtime only, Savegame


ResourceListNeeded

Runtime only, Savegame

Functions


initialize

void initialize(mandateType, workplace)

Name Type Description
mandateType MANDATE_TYPE
workplace COMP_WORKPLACE

cancelMandate

Virtual function

void cancelMandate()


completeMandate

Virtual function

void completeMandate()


getCurrentStateText

Virtual function

string getCurrentStateText()


getRemainingTime

float getRemainingTime()


decreaseRemainingTime

void decreaseRemainingTime(deltaTime)

Name Type Description
deltaTime float

getRemainingTimeRatio

float getRemainingTimeRatio()

api/mandate.txt · Last modified: 2022/02/15 14:51 (external edit)