public override void Tick(int currentTick)
 {
     if (currentTick % 500 == 0)
     {
         FoodSearchCache.ClearExpired();
     }
 }
        public override void WorldLoaded()
        {
            FoodSearchCache.ClearAll();

            var obj = UtilityWorldObjectManager.GetUtilityWorldObject <WorldDataStore_PawnPolicies>();

#if DEBUG
            Log.Message("World loaded. assigned policies: " + WorldDataStore_PawnPolicies.AssignedPoliciesCount);
#endif

            //if (!SeparatedNutrientPaste)
            //	Utils.ShowRevertAllWorldNonVanillaThingsDialog();
        }
        internal static void SetPolicyForPawn(Pawn pawn, Policy policy)
        {
            GetPawnEntry(pawn);

            if (policy == null)
            {
                policy = GetDefaultPolicyFor(pawn);
            }

            SingleInstance.AssignedPolicies[pawn] = policy;

            FoodSearchCache.ClearCacheForPawn(pawn);
        }