Ejemplo n.º 1
0
 public ActivityTask(ActivityTask task)
 {
     this.dayOfTask = task.dayOfTask;
     this.startHour = task.startHour;
     this.property  = task.property;
     this.loadID    = Find.UniqueIDsManager.GetNextBillID();
     this.humanlike = task.humanlike;
     this.animal    = task.humanlike;
     this.filter    = task.filter;
 }
Ejemplo n.º 2
0
 public ActivityTask(ScheduledDay dayOfTask, ReligionProperty property)
 {
     this.dayOfTask = dayOfTask;
     if (Scribe.mode == LoadSaveMode.Inactive)
     {
         this.loadID   = Find.UniqueIDsManager.GetNextThingID();
         startHour     = 18;
         this.property = property;
         humanlike     = new IngredientPawn();
         animal        = new IngredientPawn();
         List <ThingDef> defs = new List <ThingDef>();
         foreach (ThingDefsCount tcd in ActivityTaskDef.ThingDefsCount)
         {
             defs.Add(tcd.Thing);
         }
         filter = new SimpleFilter(defs);
     }
 }