/// <summary> /// Creates <see cref="ScanSettings"/> from the given <see cref="ScanValueType"/>. /// </summary> /// <param name="valueType">The <see cref="ScanValueType"/> to use.</param> /// <returns>The created <see cref="ScanSettings"/>.</returns> private static ScanSettings CreateScanSettings(ScanValueType valueType) { Contract.Ensures(Contract.Result <ScanSettings>() != null); var settings = ScanSettings.Default; settings.ValueType = valueType; return(settings); }
public InputCorrelatedScanner(RemoteProcess process, KeyboardInput input, IEnumerable <KeyboardHotkey> hotkeys, ScanValueType valueType) : base(process, CreateScanSettings(valueType)) { Contract.Requires(process != null); Contract.Requires(input != null); Contract.Requires(hotkeys != null); Contract.Ensures(this.input != null); this.process = process; this.input = input; this.hotkeys = hotkeys.ToList(); }
public ScanResultStore(ScanValueType valueType, string storePath) { this.valueType = valueType; this.storePath = Path.Combine(storePath, $"ReClass.NET_MemoryScanner_{Guid.NewGuid()}.tmp"); }