mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-04 16:04:57 -05:00
Decentralizes pocket injection logic from SysBotUI so that other auto-injectors can be passed in (future? like terrain/overworld items). Adds validation to not modify items if the pocket data doesn't have the expected layout. Closes #47 by implementing things in a more abstract & extendable way. Thanks @jfmherokiller for the example implementation which served as an inspiration!
9 lines
213 B
C#
9 lines
213 B
C#
namespace NHSE.Injection
|
|
{
|
|
public interface IRAMReadWriter
|
|
{
|
|
bool Connected { get; }
|
|
byte[] ReadBytes(uint offset, int length);
|
|
void WriteBytes(byte[] data, uint offset);
|
|
}
|
|
} |