public static void OnLoad() { PUtil.InitLibrary(); options = new EfficientFetchOptions(); PUtil.RegisterPatchClass(typeof(EfficientFetchPatches)); POptions.RegisterOptions(typeof(EfficientFetchOptions)); }
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()); }
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()); }