示例#1
0
 public ModMain(ModContentPack content) : base(content)
 {
     settings = GetSettings <TenantsSettings>();
     SettingsHelper.LatestVersion = settings;
     currentVersion =
         VersionFromManifest.GetVersionFromModMetaData(ModLister.GetActiveModWithIdentifier("Mlie.Tenants"));
 }
 public ClimateCycle(ModContentPack content) : base(content)
 {
     currentVersion =
         VersionFromManifest.GetVersionFromModMetaData(
             ModLister.GetActiveModWithIdentifier("Mlie.ClimateCyclePlusPlus"));
     settings = GetSettings <CycleSettings>();
     GameCondition_ClimateCyclePlusPlus.settings = settings;
 }
示例#3
0
    public DogsMateMod(ModContentPack content) : base(content)
    {
        instance       = this;
        currentVersion =
            VersionFromManifest.GetVersionFromModMetaData(ModLister.GetActiveModWithIdentifier("Mlie.DogsMate"));
        var harmony = new Harmony(nameof(DogsMateMod));

        harmony.PatchAll();
    }
示例#4
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="content"></param>
 public TabSortingMod(ModContentPack content)
     : base(content)
 {
     instance              = this;
     tabsScrollPosition    = new Vector2(0, 0);
     optionsScrollPosition = new Vector2(0, 0);
     currentVersion        =
         VersionFromManifest.GetVersionFromModMetaData(ModLister.GetActiveModWithIdentifier("Mlie.TabSorting"));
 }
 public CRC_Loader(ModContentPack content) : base(content)
 {
     harmony        = new Harmony("net.marvinkosh.rimworld.mod.combatreadinesscheck");
     currentVersion =
         VersionFromManifest.GetVersionFromModMetaData(
             ModLister.GetActiveModWithIdentifier("Mlie.CombatReadinessCheck"));
     settings = GetSettings <CRC_Settings>();
     PatchMap();
     PatchCaravan();
     PatchDefaultThreatPointsNow();
 }
示例#6
0
文件: PIMod.cs 项目: emipa606/Rebound
 public PIMod(ModContentPack content) : base(content)
 {
     GetSettings <Settings>();
     Settings.currentVersion =
         VersionFromManifest.GetVersionFromModMetaData(ModLister.GetActiveModWithIdentifier("Mlie.Rebound"));
 }