/[RomCheater]/trunk/RomCheater/Docking/MemorySearch/MemComparer.cs
ViewVC logotype

Annotation of /trunk/RomCheater/Docking/MemorySearch/MemComparer.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 280 - (hide annotations) (download)
Tue Jun 5 00:13:29 2012 UTC (8 years, 10 months ago) by william
File size: 1220 byte(s)
+ import search code from PCSX2 Ram Dump (no need to re-invent the wheel...plus it cuts down on code refactoring time)

1 william 280 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     }

  ViewVC Help
Powered by ViewVC 1.1.22