/[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/05/31 09:31:57	206
+++ trunk/RomCheater.PluginFramework/Events/IAcceptsMemoryAddress.cs	2012/06/05 08:52:07	287
@@ -5,8 +5,28 @@
 
 namespace RomCheater.PluginFramework.Events
 {
-    public interface IAcceptsExternalMemoryAddress
+    public interface IBrowseMemoryRegion
     {
-        bool AcceptExternalMemoryAddress(uint address);
+        bool BrowseMemoryRegion(int MemoryRegion);
+    }
+
+    public interface IAcceptsBrowseMemoryRegion
+    {
+        event BaseEventHandler<BrowseMemoryRegionEvent> OnBrowseMemoryRegion;
+    }
+
+    public interface IBrowseMemoryRegionEvent
+    {
+        int MemoryRegion { get; }
+    }
+    public class BrowseMemoryRegionEvent : BaseEventArgs, IBrowseMemoryRegionEvent
+    {
+        public BrowseMemoryRegionEvent() : this(0) { }
+        public BrowseMemoryRegionEvent(object sender) : this(0, sender) { }
+        public BrowseMemoryRegionEvent(int memoryRegion) : base() { this.MemoryRegion = memoryRegion; }
+        public BrowseMemoryRegionEvent(int memoryRegion, object sender) : base(sender) { this.MemoryRegion = memoryRegion; }
+        #region IBrowseMemoryRegionEvent members
+        public int MemoryRegion { get; private set; }
+        #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22