Class Job
A job for a settler to complete.
Inheritance
System.Object
Job
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class Job : object
Constructors
Job(String, Object[])
Construct a job from one that already exists in the game. It is not currently possible to construct a custom job, but the ones that exist in-game should be enough for now.
Declaration
public Job(string fromTemplate, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | fromTemplate | The template to construct this Job from |
System.Object[] | args | See the documentation for this Job to learn what the constructor arguments are |
Methods
Dispatch(Scene, Closure)
Add this Job to the public jobs list of a Scene for a settler to complete.
Declaration
public void Dispatch(Scene onScene, Closure onCompleted)
Parameters
Type | Name | Description |
---|---|---|
Scene | onScene | |
Closure | onCompleted |