Exemplo n.º 1
0
 public static void OnLoad()
 {
     PUtil.InitLibrary();
     Options = new DeselectMaterialsOptions();
     POptions.RegisterOptions(typeof(DeselectMaterialsOptions));
     PUtil.RegisterPatchClass(typeof(DeselectMaterialsPatches));
 }
 public override void OnLoad(Harmony harmony)
 {
     base.OnLoad(harmony);
     PUtil.InitLibrary();
     new PLocalization().Register();
     Options = new DeselectMaterialsOptions();
     new POptions().RegisterOptions(this, typeof(DeselectMaterialsOptions));
     new PPatchManager(harmony).RegisterPatchClass(typeof(DeselectMaterialsPatches));
     new PVersionCheck().Register(this, new SteamVersionChecker());
 }
Exemplo n.º 3
0
        internal static void LoadSettings()
        {
            var newOptions = POptions.ReadSettings <DeselectMaterialsOptions>();

            if (newOptions != null)
            {
                Options = newOptions;
            }
            PUtil.LogDebug("DeselectNewMaterials settings: Ignore Food = {0}".F(Options.
                                                                                IgnoreFoodBoxes));
        }