public static JobAction[] GetActionsForTask(JobTasks task, TribeJob job) { JobAction[] actions = null; if (task == JobTasks.Build) { actions = new JobAction[1]; actions[0] = new JobAction(JobActions.DetermineResources, job); } if (actions == null) { Debug.LogWarning("Action list empty for task - " + task); } return(actions); }
private void initialize(JobActions action, Transform target, TribeJob job) { this._targetTransform = target; this._targetPosition = target.position; initialize(action, job); }
private void initialize(JobActions action, TribeJob job) { this._parentJob = job; this.jobAction = action; resourcesRequired = new Dictionary <Thing.Thing_Types, int>(); }
private void initialize(JobActions action, Vector3 targetPosition, TribeJob job) { this._targetPosition = targetPosition; this._targetTransform = null; initialize(action, job); }
public JobAction(JobActions action, TribeJob job) { initialize(action, job); }
public JobAction(JobActions action, Transform target, TribeJob job) { initialize(action, target, job); }
public JobAction(JobActions action, Vector3 targetPosition, TribeJob job) { initialize(action, targetPosition, job); }
public TribeJobPosting(float urgency, Tasks.CreatureTasks task, TribeJob parentJob) { this.urgency = urgency; this.requestedTask = task; this.associatedJob = parentJob; }