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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater.PluginFramework/Events/IAcceptsMemoryAddress.cs	2012/06/03 16:50:16	256
+++ trunk/RomCheater.PluginFramework/Events/IAcceptsMemoryAddress.cs	2012/06/03 22:01:05	275
@@ -9,4 +9,24 @@
     {
         bool AcceptExternalMemoryAddress(int address);
     }
+
+    public interface IAcceptsBrowseMemoryRegion
+    {
+        BaseEventHandler<BrowseMemoryRegionEvent> OnBrowseMemoryRegion { get; set; }
+    }
+
+    public interface IBrowseMemoryRegionEvent
+    {
+        int Address { get; }
+    }
+    public class BrowseMemoryRegionEvent : BaseEventArgs, IBrowseMemoryRegionEvent
+    {
+        public BrowseMemoryRegionEvent() : this(0) { }
+        public BrowseMemoryRegionEvent(object sender) : this(0, sender) { }
+        public BrowseMemoryRegionEvent(int address) : base() { this.Address = address; }
+        public BrowseMemoryRegionEvent(int address, object sender) : base(sender) { this.Address = address; }
+        #region IBrowseMemoryRegionEvent members
+        public int Address { get; private set; }
+        #endregion
+    }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22