From 953f9e8591840dd58b8f94f9564734cdbbeab9cb Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Mar 2026 13:38:25 +0000 Subject: [PATCH] feat: add spawnNpc method to SocketClient Co-Authored-By: Claude Opus 4.6 --- client/src/network/SocketClient.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/network/SocketClient.ts b/client/src/network/SocketClient.ts index c4627a6..3f3c997 100644 --- a/client/src/network/SocketClient.ts +++ b/client/src/network/SocketClient.ts @@ -45,6 +45,10 @@ export class SocketClient { this.socket.emit('player-input', input); } + spawnNpc(x: number, y: number): void { + this.socket.emit('spawn-npc', { x, y }); + } + disconnect(): void { this.socket.disconnect(); }