Esempio n. 1
0
        public static void Initialize()
        {
            TechprintingSettings.ValidateSettings();

            if (TechprintingSettings.addTechprintRequirements)
            {
                ResearchProjectHelper.SetTechprintRequirements();
            }
            if (TechprintingSettings.splitProjects)
            {
                ResearchProjectHelper.SplitAllProjects();
            }

            ResearchProjectHelper.SetHardTechprintReqs();

            GenerateAllShards();

            foreach (ResearchProjectDef rp in DefDatabase <ResearchProjectDef> .AllDefs)
            {
                if (rp.techprintCount > 0 && rp.techprintCount < 100 && !ResearchProjectHelper.added.Contains(rp) && !ResearchProjectHelper.oldNewMap.Values.Contains(rp))
                {
                    rp.techprintCount *= 100;
                }
            }

            MakeThingDictionaries();
            SetTechshardPrices();
        }
Esempio n. 2
0
        public TechprintingMod(ModContentPack content) : base(content)
        {
            this.settings = GetSettings <TechprintingSettings>();

            if (TechprintingSettings.lateLoad)
            {
                LongEventHandler.QueueLongEvent(Base.Initialize, "DTechprinting.BuildingDatabase", false, null);
            }
        }
Esempio n. 3
0
 public override void WriteSettings() // called when settings window closes
 {
     TechprintingSettings.WriteAll();
     base.WriteSettings();
 }
Esempio n. 4
0
 public override void DoSettingsWindowContents(Rect inRect)
 {
     TechprintingSettings.DrawSettings(inRect);
     base.DoSettingsWindowContents(inRect);
 }