From 86b493b881bde4a11214929ebe4317289a7f1da3 Mon Sep 17 00:00:00 2001 From: Caleb Date: Thu, 1 Sep 2022 22:36:22 -0400 Subject: Moved rest of the handlers --- webAO/packets/handlers/handleSP.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 webAO/packets/handlers/handleSP.ts (limited to 'webAO/packets/handlers/handleSP.ts') diff --git a/webAO/packets/handlers/handleSP.ts b/webAO/packets/handlers/handleSP.ts new file mode 100644 index 0000000..e2cad18 --- /dev/null +++ b/webAO/packets/handlers/handleSP.ts @@ -0,0 +1,9 @@ +import { updateActionCommands } from "../../client"; + +/** +* position change +* @param {string} pos new position +*/ +export const handleSP = (args: string[]) => { + updateActionCommands(args[1]); +} \ No newline at end of file -- cgit From 67314a8bc22ea198b8e3de788282a0ca0151cb1e Mon Sep 17 00:00:00 2001 From: Caleb Date: Sun, 4 Sep 2022 00:02:19 -0400 Subject: Several functions moved --- webAO/packets/handlers/handleSP.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'webAO/packets/handlers/handleSP.ts') diff --git a/webAO/packets/handlers/handleSP.ts b/webAO/packets/handlers/handleSP.ts index e2cad18..e176eeb 100644 --- a/webAO/packets/handlers/handleSP.ts +++ b/webAO/packets/handlers/handleSP.ts @@ -1,5 +1,4 @@ -import { updateActionCommands } from "../../client"; - +import { updateActionCommands } from '../../dom/updateActionCommands' /** * position change * @param {string} pos new position -- cgit