/[RomCheater]/trunk/RomCheater.PluginFramework/Events/IAcceptsMemoryAddress.cs
ViewVC logotype

Annotation of /trunk/RomCheater.PluginFramework/Events/IAcceptsMemoryAddress.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 275 - (hide annotations) (download)
Sun Jun 3 22:01:05 2012 UTC (8 years, 1 month ago) by william
File size: 1064 byte(s)
+ add BrowseMemoryRegion event in MemorySearcher
: calls back to main form which calls MemoryViewer.AcceptExternalMemoryAddress(address)

1 william 206 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5    
6     namespace RomCheater.PluginFramework.Events
7     {
8     public interface IAcceptsExternalMemoryAddress
9     {
10 william 256 bool AcceptExternalMemoryAddress(int address);
11 william 206 }
12 william 275
13     public interface IAcceptsBrowseMemoryRegion
14     {
15     BaseEventHandler<BrowseMemoryRegionEvent> OnBrowseMemoryRegion { get; set; }
16     }
17    
18     public interface IBrowseMemoryRegionEvent
19     {
20     int Address { get; }
21     }
22     public class BrowseMemoryRegionEvent : BaseEventArgs, IBrowseMemoryRegionEvent
23     {
24     public BrowseMemoryRegionEvent() : this(0) { }
25     public BrowseMemoryRegionEvent(object sender) : this(0, sender) { }
26     public BrowseMemoryRegionEvent(int address) : base() { this.Address = address; }
27     public BrowseMemoryRegionEvent(int address, object sender) : base(sender) { this.Address = address; }
28     #region IBrowseMemoryRegionEvent members
29     public int Address { get; private set; }
30     #endregion
31     }
32 william 206 }

  ViewVC Help
Powered by ViewVC 1.1.22