コード例 #1
0
 public static void OnLoad()
 {
     PUtil.InitLibrary();
     options = new EfficientFetchOptions();
     PUtil.RegisterPatchClass(typeof(EfficientFetchPatches));
     POptions.RegisterOptions(typeof(EfficientFetchOptions));
 }
コード例 #2
0
 internal static void OnStartGame()
 {
     options = POptions.ReadSettings <EfficientFetchOptions>() ??
               new EfficientFetchOptions();
     PUtil.LogDebug("EfficientFetch starting: Min Ratio={0:D}%".F(options.
                                                                  MinimumAmountPercent));
     EfficientFetchManager.CreateInstance(options.GetMinimumRatio());
 }
コード例 #3
0
 public override void OnLoad(Harmony harmony)
 {
     base.OnLoad(harmony);
     PUtil.InitLibrary();
     options = new EfficientFetchOptions();
     new PPatchManager(harmony).RegisterPatchClass(typeof(EfficientFetchPatches));
     new POptions().RegisterOptions(this, typeof(EfficientFetchOptions));
     new PVersionCheck().Register(this, new SteamVersionChecker());
 }