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:
Kurt
2020-04-04 20:57:25 -07:00
committed by GitHub
parent 74f6157fa3
commit 1db185151d
19 changed files with 288 additions and 38 deletions

View File

@@ -0,0 +1,27 @@
namespace NHSE.Injection
{
/// <summary>
/// Controller Buttons
/// </summary>
public enum SwitchButton
{
A,
B,
X,
Y,
RSTICK,
LSTICK,
L,
R,
ZL,
ZR,
PLUS,
MINUS,
DUP,
DDOWN,
DLEFT,
DRIGHT,
HOME,
CAPTURE,
}
}