Example #1
0
 public static void ApplyActiveProfile()
 {
     if (activeProfile == null)
     {
         return;
     }
     activeProfile.Apply();
     nextActiveProfile = activeProfile;
     currentProfile    = activeProfile;
 }
Example #2
0
        public static void ApplyActiveProfile()
        {
            if (activeProfile == null)
            {
                return;
            }
            activeProfile.Apply();
            nextActiveProfile = activeProfile;
            currentProfile    = activeProfile;
            if (LoadedModManager.RunningModsListForReading.Any(x => x.Name == "[D] Techprinting"))
            {
                UpdateTechprinting();
            }

            ResourceCounter.ResetDefs();
            DefDatabase <ThingCategoryDef> .ResolveAllReferences(true, false);

            DefDatabase <RecipeDef> .ResolveAllReferences(true, false);
        }