Esempio n. 1
0
 public override void FinalizeInit()
 {
     if (FlareRaidIsEnabled)
     {
         SolarRaidStoryWorker = new SolarRaid_StoryWorker();
     }
     base.FinalizeInit();
 }
Esempio n. 2
0
 public override void GameComponentTick()
 {
     if (FlareRaidIsEnabled && SolarRaidStoryWorker == null)
     {
         SolarRaidStoryWorker = new SolarRaid_StoryWorker();
     }
     else if (!FlareRaidIsEnabled && SolarRaidStoryWorker != null)
     {
         SolarRaidStoryWorker = null;
     }
     SolarRaidStoryWorker?.TickCheckForFlareRaid();
 }
Esempio n. 3
0
 public override void ExposeData()
 {
     base.ExposeData();
     if (FlareRaidIsEnabled && Scribe.mode == LoadSaveMode.Saving)
     {
         SolarRaidStoryWorker?.ExposeData();
     }
     else if (FlareRaidIsEnabled && Scribe.mode == LoadSaveMode.LoadingVars)
     {
         SolarRaidStoryWorker = new SolarRaid_StoryWorker();
         SolarRaidStoryWorker.ExposeData();
     }
 }