Work

From Crumbled World Wiki

WorkExampleCode

Functions

return function description
string getName() Get work name.
int getWeight() Get work weight.
addDependency(Work dependency) This work can not be excecuted befor the dependency is done.
removeDependency(Work dependency) Remove a dependency.
setName(string name) Set the work name.
setWeight(int weight) Set the work weight. default is 0. the highest weight is 10.