--- trunk/RomCheater.PluginFramework/Events/IAcceptsMemoryAddress.cs 2012/06/03 21:41:19 274 +++ trunk/RomCheater.PluginFramework/Events/IAcceptsMemoryAddress.cs 2012/06/03 22:01:05 275 @@ -9,4 +9,24 @@ namespace RomCheater.PluginFramework.Eve { 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 + } } |