Beispiel #1
0
 public static void RegisterPlantSlotFor(Predicate <GardenCatcher> condition, GardenCatcher.PlantSlot slot)
 {
     RegisterGardenCatcherPatcher(x => { if (condition(x))
                                         {
                                             x.plantable = x.plantable.Where(y => y.id != slot.id).ToArray().AddToArray(slot);
                                         }
                                  });
 }
Beispiel #2
0
 //+ REGISTRATION
 public static void RegisterPlantable(GardenCatcher.PlantSlot plantSlot)
 {
     /*if (PLANTABLES.ContainsKey(plantSlot.id)) PLANTABLES[plantSlot.id] = plantSlot;
      * else PLANTABLES.Add(plantSlot.id, plantSlot);*/
 }
Beispiel #3
0
 public static void RegisterPlantSlot(GardenCatcher.PlantSlot plantSlot)
 {
     RegisterGardenCatcherPatcher(x => x.plantable = x.plantable.Where(y => y.id != plantSlot.id).ToArray().AddToArray(plantSlot));
 }