public static FarmingHysteresisMapComponent For(Map map)
        {
            var instance = map.GetComponent <FarmingHysteresisMapComponent>();

            if (instance != null)
            {
                return(instance);
            }

            instance = new FarmingHysteresisMapComponent(map);
            map.components.Add(instance);
            return(instance);
        }
 public GlobalThingDefBoundValueAccessor(FarmingHysteresisMapComponent mapComponent, ThingDef thingDef)
 {
     this.mapComponent = mapComponent;
     this.thingDef     = thingDef;
 }