1 |
using System; |
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
|
6 |
namespace RomCheater.Docking.MemorySearch |
7 |
{ |
8 |
public class MemComparer<T> : ICompareValue<T>, ICompareAddress, ISearchSettings |
9 |
{ |
10 |
|
11 |
public MemComparer(SearchType search_settings, int address, T value) |
12 |
{ |
13 |
this.SearchSettings = search_settings; |
14 |
this.Address = address; |
15 |
this.Value = value; |
16 |
} |
17 |
|
18 |
//#region IMemComparer<T> Members |
19 |
//public bool Compare(T CompareToValue, T CompareFromValue) |
20 |
//{ |
21 |
// return true; |
22 |
//} |
23 |
//#endregion |
24 |
|
25 |
#region ICompareValue<T> Members |
26 |
private T _Value; |
27 |
public T Value { get { return _Value; } set { _Value = value; } } |
28 |
#endregion |
29 |
|
30 |
#region ICompareAddress Members |
31 |
private int _Address; |
32 |
public int Address { get { return _Address; } set { _Address = value; } } |
33 |
#endregion |
34 |
|
35 |
#region ISearchSettings Members |
36 |
private SearchType _SearchSettings; |
37 |
public SearchType SearchSettings { get { return _SearchSettings; } set { _SearchSettings = value; } } |
38 |
#endregion |
39 |
} |
40 |
} |