mirror of
https://github.com/kwsch/NHSE.git
synced 2026-09-27 20:36:55 -05:00
Add automatic read/write items for all pocket items (1-40) (#51)
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!
This commit is contained in:
@@ -10,7 +10,7 @@ public class SysBotController
|
||||
public SysBotController(InjectionType type) => Type = type;
|
||||
|
||||
private readonly InjectionType Type;
|
||||
private readonly SysBot Bot = new SysBot();
|
||||
public readonly SysBot Bot = new SysBot();
|
||||
private readonly Settings Settings = Settings.Default;
|
||||
|
||||
public string IP => Settings.SysBotIP;
|
||||
|
||||
Reference in New Issue
Block a user