public static TaskEntity Create() { TaskEntity task = Contexts.sharedInstance.task.CreateEntity(); task.AddType(TaskType.Wander); task.AddProcessor(processor); task.AddVerb("wander", "wandered", "wandering"); task.AddRange(3f, 6f); task.AddWorkers(new List <int>()); task.isCompleted = false; return(task); }
public static TaskEntity Create(int x, int z) { TaskEntity task = Contexts.sharedInstance.task.CreateEntity(); task.AddType(TaskType.Mine); task.AddProcessor(processor); task.AddVerb("mine", "mined", "mining"); task.AddWorkers(new List <int>()); task.AddPosition(x, 0, z); task.isCompleted = false; return(task); }